Jump to content


Photo

PHP safe mode question


  • Please log in to reply
1 reply to this topic

#1 All4172

All4172
  • Members
  • PipPipPip
  • Advanced Member
  • 78 posts

Posted 27 September 2006 - 03:06 AM

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?

#2 steveclondon

steveclondon
  • Members
  • PipPipPip
  • Advanced Member
  • 161 posts

Posted 27 September 2006 - 07:17 AM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users