Page 1 of 1

Why does my php configuration can not handle get data

Posted: Wed Sep 22, 2004 5:51 am
by dimitris
First of all i want to say that my scripts were working fine previously on a debian server. Now my site has been transferred to another server where the administrator forgot to transfer the php.ini file to the new server.

What happens now is that when someone clicks a link such as http://www.xxxx.xxx/go.php?topic=news then the go.php page reports that Notice: Undefined variable: topic in /home/xxxxx/go.php on line 50

What is wrong with php.ini?

Note: i copied the old /etc/php4/apache/php.ini to the same location but with no use!

Thanks for your help in advance! :)

Posted: Wed Sep 22, 2004 5:58 am
by CoderGoblin
Have you checked the register_globals variable ?

It used to default to on, now it defaults to off for security reasons.

NB Off is recommended.

Posted: Wed Sep 22, 2004 6:18 am
by dimitris
CoderGoblin wrote:Have you checked the register_globals variable ?

It used to default to on, now it defaults to off for security reasons.

NB Off is recommended.
register_globals = On

I have transferred the php.ini which was in apache dir. Should i transfer php.ini in cgi as well?

Posted: Wed Sep 22, 2004 6:33 am
by John Cartwright
Curious is to why you have a php.ini in your cgi..

but put this in a file and run it phpinfo(); to see if globals were turned off

Posted: Wed Sep 22, 2004 8:47 am
by m3mn0n
[big_search]php register_globals settings php.ini[/big_search]