PHPDiscussion
How do I access php.ini?

ArithusOct 24, 2006 4:32pm
I got this message

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

I need to know how to fix it.


Sponsor
LitewebsiteOct 25, 2006 6:23am
Due to security this needs to be set in the php.ini. Not all webhost allows you to edit the php.ini itself.

You can read more on register_globals at 'php.ini' and 'using register globals'. Pay attention to the security advices on these pages.

Your webhost can help you locate the file location of php.ini. Hope this can help you.


Sponsor
AhdkawFeb 22, 2007 11:07am
NEVER enable register_globals! Use the .htaccess file!


Sponsor
jordayFeb 22, 2007 3:36pm
Yep, agreed, never EVER enable it. You're just asking for security issues. What script are you using that would require that?


risyasinMar 1, 2007 8:48am
that's oscommerce's error message...
total time waste...
an ofcourse, do not use register_global on...


Sponsor
eristoddleMar 3, 2007 7:19am
Are you just trying oscommerce or are you already committed to it enough that this is the software you have to use? This is a problem I ran into with osCommerce and I ended up using Zencart. So you could try that or an even better solution if you plan on expanding more, use Drupal with a ecommerce module.


philipnorton42May 6, 2007 1:28am
I agree with the other posters on this. OsCommerce is difficult to skin and maintain and isn't search engine friendly out of the box. However, if you are set you can change the register globals directive by using a htaccess file and putting the line "php_flag register_globals on" in it. You host won't let you access the php.ini file directly. However, you might be better off not doing this because of the security issues.


lucascaroJun 4, 2007 6:30am
register globals=the devil (as is magic_quotes and the stupid safe_mode)


How do I access php.ini?

You need to Sign-up for StumbleUpon to post to this forum