FATAL ERROR: register_globals is disabled in

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
juraba
Forum Newbie
Posts: 1
Joined: Sun May 11, 2003 3:34 am

FATAL ERROR: register_globals is disabled in

Post by juraba »

Hello.... i have just installed the script setup_wamp_1.1.0.exe that installs apache server mysql and php4 on a windows xp pc. The server and the database works fine . I'm having trouble with oscommerce installation on my localhost. When i try to launch the installation script i get this error (FATAL ERROR: register_globals is disabled in php.ini, please enable it!) I have changed the file php.ini and set the (register_globals to "on" and place it in the windows/system directory. Do i have to change other tnings in order to make it work? httpd.conf parameters seems to be ok also..

Thanks to all and regards

Juraba.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

The php.ini should just be in the windows directory - not in the windows/system directory - if you move the file there and then restart Apache you should have reg_globals turned on.

Mac
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

if not

Code: Select all

<?php phpinfo(); ?>
will tell you which php.ini is used (if present)
You might also place a file .htaccess in the script directory with

Code: Select all

php_flag register_globals On
as contents.
Post Reply