Jump to content

Archived

This topic is now archived and is closed to further replies.

All4172

PHP safe mode question

Recommended Posts

I have a script that worked on my other server but on this one it doesn't.  The only difference I'm aware of is this server has php safe mode on.  Can anyone point me to what the differences are with it on vs off?

Share this post


Link to post
Share on other sites
There could be all sorts of reasons why a script will run on one server and not the other. The first thing you should do is go into you php.ini file and sell all errors and warnings to on. This will then show your errors in the script. Fix them and it should work on the other server.

If one server is windows for example that is a different story. If also they are different versions of php that can also cause another problem. Also if you script uses global varibles this can be a problem. Your script should be getting varibles from the url by using the $_GET and from forms $_POST.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.