Quote:
|
Originally Posted by moving images
Hi everybody!
We are struggling with another PHP problem:
our (shared) provider doesn't want to set SAFE MODE = OFF AND REGISTER GLOBALS = ON and this is causing malfunction of a realy nice photo-gallery programe which we are trying to run.
This complicates also the use of our 'favorite' tool GO LIVE 6.01.
Does anybody by chance know a workaround script for safe mode and register globals or have you any idea where we can find it?
Many thanks!
777
|
If you are not able to change the server's configuration generally, you change its behavior of php for each script you use:
string ini_set ( string varname, string newvalue)
Sets the value of the given configuration option. Returns the old value on success, FALSE on failure. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending.
This is a php function which should be loaded at the startup of your page. Sample:
ini_set("REGISTER_GLOBALS", "ON");
ini_set("SAFE_MODE", "OFF");
Try it this way, good luck !
