Why does my php configuration can not handle get data

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
dimitris
Forum Contributor
Posts: 110
Joined: Wed Jan 14, 2004 3:47 am
Location: Athens, Greece

Why does my php configuration can not handle get data

Post 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! :)
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post 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.
User avatar
dimitris
Forum Contributor
Posts: 110
Joined: Wed Jan 14, 2004 3:47 am
Location: Athens, Greece

Post 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?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

[big_search]php register_globals settings php.ini[/big_search]
Post Reply