httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Barrera A." <Br...@Ivn.cl>
Subject Re: [users@httpd] Stupid Apache PHP / URL variable question
Date Tue, 21 Dec 2004 18:57:00 GMT
Right.

You better use $_GET["firmtype"] to get the value you pass on url.
$_POST["var"] when you use forms method=post
$_COOKIE["var"] when you set cookies.. and so on.

You should really read php readme. register_globals defaults to off 
since a long time ago.

Luis Moreira wrote:
> That is usually not a good practice, in terms of security of the 
> application.
> It's best to read only what you are supposed to, and not to have things 
> "floating around"
> 
> Wagner, Aaron wrote:
> 
>> Set register_globals to 'on' in your php.ini file
>>
>>  
>>
>>> -----Original Message-----
>>> From: RON FLORY [mailto:ron.flory@adtran.com]
>>> Sent: December 21, 2004 10:18
>>> To: users@httpd.apache.org
>>> Subject: [users@httpd] Stupid Apache PHP / URL variable question
>>>
>>>
>>> hi-
>>>
>>>  I'm migrating a users PHP script from old Apache 1.3.22
>>> to Apache 2.0.52 (x86 Fedora Core 3).  Almost everyting works
>>> (including mysql access), except for the simplest, dumbest
>>> thing- I can't seem to pass simple variables via the URL:
>>>
>>>  For example:
>>>
>>>     http://valen2/~ta4303/index.php?firmtype=1
>>>
>>>  sets the variable "firmtype" to 1 on old Apache/PHP, but
>>> the variable is unset under new Apache/PHP.
>>>
>>>  This must be obvious to somebody- any ideas?
>>>
>>> ron
>>>
>>> ---------------------------------------------------------------------
>>> The official User-To-User support forum of the Apache HTTP Server 
>>> Project.
>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>>   
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>  
>>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message