Re: [PHP] input textfield value cat!

2001-03-05 Thread Batonik

On Mon, 5 Mar 2001, kaab kaoutar wrote:

> I'm using a variable!
> >

Quote the value:
\">

Greets,
Batonik


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how to redirect to other page?

2001-03-05 Thread Batonik

On Mon, 5 Mar 2001, JW wrote:

> i have used header to redirect to other page.
[cut]
> if ($result == false)
> {
> header ("HTTP/1.0 404 Not Found");
> exit;
> }
> else
> {
> header ("../Form/first.html");
  ^
According to RFC, you should use:
header('302 Moved');
header('Location: http://new.location.com');


Greets,
Batonik


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Pulling my hair out over Netscape...

2001-02-28 Thread Batonik

On Wed, 28 Feb 2001, Jackson, Michael wrote:

> I.E. I enter  a value, hit OK.  Then I press the back button.  Then
> I enter a DIFFERENT value, and hit OK.  The SAME value is passed to the PHP
> script!  I'm using the post method, and I haven't found a way to shake this
> yet!  This is afflicting Netscape 4.7 and Netscape 6.  Driving me crazy

Maybe try setting headers like "Expires" or "Cache-Control"?

Greets,
Batonik


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Retrieving Version numbers.

2001-02-28 Thread Batonik

On Wed, 28 Feb 2001, ACNS-ONLINE Webmaster wrote:

> I need to retrieve the version number from differant programs.  example: =
> "perl -v", or "sendmail -bt -d0", etc..
>
> The problem is that (for example perl) the program returns a bunch of BS =
> that isn't needed.  Does anyone know of a way to access this info =
> easily?

I.e. with perl try using:
perl -e 'print $]'

In other cases "preg_match" would be helpful, I guess.

Greets,
Batonik


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How to disable some functions?

2001-02-28 Thread Batonik

Hi,

I've heard that it is possible, for security reasons, to disable
such functions like phpinfo(). How can I do this?

Greets,
    Batonik


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]