Server Requirement Error: register_globals is disabled....

Any problem with PHP can be disscused here
Locked
barnes
Posts: 202
Joined: Tue May 16, 2006 5:09 am

Server Requirement Error: register_globals is disabled....

Post by barnes »

I'm installing osCommerce on my site. Not to be used on my server, but to set it up for a friends site.

They say that the error is in php.ini, or can be changed in the .htaccess file, but I see nothing in .htacess, and I can't edit php.ini obviously.

What is the problem?


Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

here, in smokyhosts, php directive "register_globals" is disabled for security reasons. Because, this script was created not by you, i can not help you. There is some small code snippets to emulate "register_globals" on, but i dont know where you should insert that code
My suggestion: try to use other version of you software, where are not required to be "register_globals" to be on, or use other software
For more info consult software developers or server admin- SHadmin :)
Image
SHAdmin
Posts: 2095
Joined: Sat Dec 18, 2004 11:28 am
Contact:

Post by SHAdmin »

Follow the below guidlines for working around it for script to script basis....

>>Create a .htaccess in the parent directory of your script
>>In it type

Code: Select all

php_flag register_globals on
Thats it!!

For more details, refer to http://www.desilva.biz/apache/regblsoff.html
barnes
Posts: 202
Joined: Tue May 16, 2006 5:09 am

Post by barnes »

thanks alot!!
Locked