[PHP-DB] standart variabels melfunction

2002-11-19 Thread Martin Allan Jensen
Hi all,

I have a problem with my settings of Apache and PHP i think..

When i call for example ($PHP_SELF) instead of ($_SERVER[PHP_SELF]) i get no output, 
just like when i call the url
www.servername.tld/test.php?mode=test
And i want to call the mode like this:
print($mode);
I just get a empty string.
But when i call:
print($_GET[mode]);
I get the real output...

I tried to walk troug the hole php.ini & the httpd.conf file, but nothing came up, so 
i relly hope that you can help me out here...!

Sorry if it's a little off topic..

And THANKS A LOT!!

Regards
Martin Allan Jensen



RE: [PHP-DB] standart variabels melfunction

2002-11-19 Thread Beau Lebens
[php.ini]
register_globals=On

Beau

// -Original Message-
// From: Martin Allan Jensen [mailto:[EMAIL PROTECTED]]
// Sent: Wednesday, 20 November 2002 12:41 PM
// To: [EMAIL PROTECTED]
// Subject: [PHP-DB] standart variabels melfunction
// 
// 
// Hi all,
// 
// I have a problem with my settings of Apache and PHP i think..
// 
// When i call for example ($PHP_SELF) instead of 
// ($_SERVER[PHP_SELF]) i get no output, just like when i call the url
// www.servername.tld/test.php?mode=test
// And i want to call the mode like this:
// print($mode);
// I just get a empty string.
// But when i call:
// print($_GET[mode]);
// I get the real output...
// 
// I tried to walk troug the hole php.ini & the httpd.conf 
// file, but nothing came up, so i relly hope that you can help 
// me out here...!
// 
// Sorry if it's a little off topic..
// 
// And THANKS A LOT!!
// 
// Regards
// Martin Allan Jensen
// 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] standart variabels melfunction

2002-11-19 Thread Ignatius Reilly
Martin,

what you are experiencing is the normal way to call form variables. There is
no problem.

You should use
register_globals=Off

whenever possible. better security.

Ignatius

- Original Message -
From: "Beau Lebens" <[EMAIL PROTECTED]>
To: "'Martin Allan Jensen'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 5:46 AM
Subject: RE: [PHP-DB] standart variabels melfunction


> [php.ini]
> register_globals=On
>
> Beau
>
> // -Original Message-
> // From: Martin Allan Jensen [mailto:[EMAIL PROTECTED]]
> // Sent: Wednesday, 20 November 2002 12:41 PM
> // To: [EMAIL PROTECTED]
> // Subject: [PHP-DB] standart variabels melfunction
> //
> //
> // Hi all,
> //
> // I have a problem with my settings of Apache and PHP i think..
> //
> // When i call for example ($PHP_SELF) instead of
> // ($_SERVER[PHP_SELF]) i get no output, just like when i call the url
> // www.servername.tld/test.php?mode=test
> // And i want to call the mode like this:
> // print($mode);
> // I just get a empty string.
> // But when i call:
> // print($_GET[mode]);
> // I get the real output...
> //
> // I tried to walk troug the hole php.ini & the httpd.conf
> // file, but nothing came up, so i relly hope that you can help
> // me out here...!
> //
> // Sorry if it's a little off topic..
> //
> // And THANKS A LOT!!
> //
> // Regards
> // Martin Allan Jensen
> //
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php