Guest Posted April 26, 2004 Share Posted April 26, 2004 I'm using Linux platform to use OsCommerce. When I go to http://localhost/catalog/install It shows: FATAL ERROR: register_globals is disabled in php.ini, please enable it! But I check the php.ini in /etc the register_globals=ON is changed Why is always show this FATAL ERROR?! Help pls~ Link to comment Share on other sites More sharing options...
peterr Posted April 26, 2004 Share Posted April 26, 2004 Hi, What does a 'phpinfo()' tell you about 'register_globals' ? Peter Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2004 Share Posted April 26, 2004 What is 'phpinfo()' ??? Link to comment Share on other sites More sharing options...
peterr Posted April 26, 2004 Share Posted April 26, 2004 Hi, Just code the following in a PHP script. <? // display all the PHP info phpinfo(); ?> and run it, then see what the register_globals values are. Peter Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2004 Share Posted April 26, 2004 oh~ It is OFF OFF How can I change it?! THanks~ Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2004 Share Posted April 26, 2004 Can you tell me which file need to change?! where is the php.ini ?! Thx~ Link to comment Share on other sites More sharing options...
peterr Posted April 26, 2004 Share Posted April 26, 2004 Hi, When you run phpinfo(), the location of the file PHP.INI, is usually right up the top, for me, it is the sixth row, and states: Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini Peter Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2004 Share Posted April 26, 2004 I found it in /etc But I already change the register_global => "ON" May be I use OpenOffice to edit, so the file has problem. Anyway, how can i fixed it?! Link to comment Share on other sites More sharing options...
peterr Posted April 26, 2004 Share Posted April 26, 2004 Hi, I found it in /etc But, did 'phpinfo()' state it was in "/etc" ?? But I already change the register_global => "ON" I had a look at a PHP.INI, and the line is: register_globals = On May be I use OpenOffice to edit, so the file has problem. Maybe, .....try Crimson Editor , it's free and has syntax highlighting for PHP files, so it's a nice tool to use for osCommerce. Anyway, how can i fixed it?! Check that your 'phpinfo()' display path name is "/etc" , maybe PHP doesn't like the "ON', because here is what the file states: ; Boolean flags can be turned on using the values 1, On, True or Yes.; They can be turned off using the values 0, Off, False or No. Peter Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2004 Share Posted April 26, 2004 I checked the Configuration File (php.ini) Path is "/etc" Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2004 Share Posted April 26, 2004 I was changed the php.ini register_globals => "ON" used by webmin file editor But still no effect~~~ =.=! Link to comment Share on other sites More sharing options...
peterr Posted April 26, 2004 Share Posted April 26, 2004 Hi, Do you need to restart your (Apache ?) web server ?? edit: Also, try not to use uppcase, the line should be like this: register_globals = On Peter Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2004 Share Posted April 26, 2004 not yet~ :blink: Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2004 Share Posted April 26, 2004 OK~ :D When I restart the Apache Server, it was changed! Thank YOU~~~ :P Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.