[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: php4 url parameters and arguments problem



On Wednesday 12 December 2001 14:37, Patrick Hsieh wrote:
> Hello,
> I have a testing url like:
> http://host.domain.com/test.php?111+222+&test_par=aaa&;
>
> then in test.php, I can get
> 111 as argv0
> 222 as argv1
> &test_par=aaa& as argv3
>
> but I can't get the value of $test_par, which should be aaa
>
>
> I found when I get the php4 source and compile myself, it is ok. But if I
> use official Debian .deb, I got this problem.
>
> Is there anything wrong?
>
> I am running Debian2.2r4:
>
> me:~ #dpkg -l | grep php
> ii  php4           4.0.100-1      A server-side, HTML-embedded scripting
> langu ii  php4-mysql     4.0.100-1      MySQL module for php4
>
>
> Idea?

Do you have 

register_globals = On 

in your php.ini ?

Also try to $HTTP_GET_VARS[''test_par"]


PS
This URL is somehow suspicious, why do you send & at the end of it ?
& is used as a separator between name=value pairs.
-- 
Meir Kriheli



Reply to: