Re: [PHP] $HTTP_*_VARS ?

2002-04-22 Thread Erik Price


On Monday, April 22, 2002, at 10:28  AM, Tobias Lindqvist wrote:

>>> Hoe come I cant use $HTTP_*_VARS in my script ? I have
> register_globals
>>> on, track vars is also on and i have made the necessary changes in my
>>> apache config ( the ALLOWOVERRIDE ALL ). My system is Win XP, Apache
> (
>>> newest ) and newest PHP release.
>
>> You don't want to use $HTTP_*_VARS.
>
>> You want to use $_* ($_SESSION, $_COOKIE, $_GET, $_POST, $_SERVER, etc)
>
> Well, I cant use them either for some reason...

Sure you can.  You just hold down the shift key, press the number 4, 
then the dash-key next to the number zero, and then type 'g', 'e', and 
't'.  It should look like this:

$_GET

Next, you release the shift key and type the left-bracket key, followed 
by an apostrophe (singlequote).  Then type the name of the variable.  
Then type another apostrophe, and the closing bracket, like this:

$_GET['variablename']

Now you know how to use them.  If you continue to have problems, please 
try to describe them so that others on this list can come up with 
helpful information.  When you say "newest PHP release", I'm assuming 
you're talking about 4.1.2 or higher?


Erik






Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


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




RE: [PHP] $HTTP_*_VARS ?

2002-04-22 Thread Tobias Lindqvist

Hi again.

>> Hoe come I cant use $HTTP_*_VARS in my script ? I have
register_globals
>> on, track vars is also on and i have made the necessary changes in my
>> apache config ( the ALLOWOVERRIDE ALL ). My system is Win XP, Apache
(
>> newest ) and newest PHP release.

>You don't want to use $HTTP_*_VARS.

>You want to use $_* ($_SESSION, $_COOKIE, $_GET, $_POST, $_SERVER, etc)

Well, I cant use them either for some reason...

Tobias.


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




Re: [PHP] $HTTP_*_VARS ?

2002-04-22 Thread Erik Price


On Friday, April 19, 2002, at 06:18  PM, Tobias Lindqvist wrote:

> Hoe come I cant use $HTTP_*_VARS in my script ? I have register_globals
> on, track vars is also on and i have made the necessary changes in my
> apache config ( the ALLOWOVERRIDE ALL ). My system is Win XP, Apache (
> newest ) and newest PHP release.

You don't want to use $HTTP_*_VARS.

You want to use $_* ($_SESSION, $_COOKIE, $_GET, $_POST, $_SERVER, etc)


Erik






Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


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




Re: [PHP] $HTTP_???_VARS[] always populated?

2001-06-22 Thread David Robley

On Fri, 22 Jun 2001 08:02, Matthew M. Boulter wrote:
> Quick question crew,
>
> ATM we're trying to convert all of our existing scripts t conform to
> register_globals being OFF, i.e., accessing everything through the
> $HTTP_???_VARS[] arrays.
>
> What I was wondering is, when register_globals in ON, do all of the
> $HTTP_???_VARS[] arrays * still * get populated?
>
> I.e., if we convert all our scripts to use these arrays and then decide
> to turn register_globals on again, will all our changed scripts still
> work?
>
> Thanx, Matty.

I've got register_globals on and the following script
 $val";
}
?>

called with test.php?a=as&b=bs

returns
a ==> as
b ==> bs

So looks like you would be OK.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   A good pun is its own reword.

-- 
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]