Guest Posted February 26, 2004 Posted February 26, 2004 Ok, when i try to install osCommerce i get the following error: FATAL ERROR: register_globals is disabled in php.ini, please enable it! Unfortunately, my webhost cannot enable this as it is a security threat. Is there any way round this? Many Thanks Woodsie
1quicksi Posted February 26, 2004 Posted February 26, 2004 Search an ye shall find: http://www.oscommerce.com/forums/index.php?sho...=0entry316790 Interview - PHP's Creator, Rasmus Lerdorf SP: What are your views on Magic Quotes and Register Globals? RL: Register Globals is one of the features that brought people to PHP. The simplicity of creating Web applications when form and other variables were automatically available could not be beaten. I was personally not in favour of turning Register Globals off by default. It adds very little to the overall security of an application. If people do not check data coming from the user then with or without Register Globals enabled that application is going to be insecure. The only time having Register Globals off helps is when you forget to initialize a variable before you use it and someone who knows your code exploits that. By changing the error reporting level you can have PHP find these cases for you automatically. So in the end, all I think turning Register Globals off has done is make writing PHP apps more complicated. And it has of course also generated 10-20 questions/bug reports per day from users who are confused about this change. knowledge base | Contributions | Search
Genka Posted January 30, 2005 Posted January 30, 2005 Ok, when i try to install osCommerce i get the following error: FATAL ERROR: register_globals is disabled in php.ini, please enable it! Unfortunately, my webhost cannot enable this as it is a security threat. Is there any way round this? Many Thanks Woodsie <{POST_SNAPBACK}> I am using WXP-Home with Abyss Webserver and an ip-publisher on my own computer and had the same error. Here my changes witch I have done. Following the instructions of http://www.aprelium.com/abyssws/php.html without result changing the php.in ; You should do your best to write your scripts so that they do not require ; register_globals to be on; Using form variables as globals can easily lead ; to possible security problems, if the code is not very well thought of. register_globals = on without result put in a new enviroment variable Name der Variablen:(Name of the variable) PHPRC Wert der Variablen:(value of the variable) ;C:\PHP\BACKUP copy the php.ini from C:\PHP\BACKUP where the installation put it to the folder C:\PHP\ where the php.exe is I don t know in the moment which of the steps were causal ground, but oscommerce runs now. bye
Recommended Posts
Archived
This topic is now archived and is closed to further replies.