PHP script works on one server but not another

I’m trying to figure out why my php script works fine in production but not my development server. The servers are running php versions 5.3 and 5.2 respectively. I’m guessing the configuration files are different. My script is housed in a specific sub directory on the web site:

i.e. /script/

Is there a way to make it so that any file in /script/ uses a custom php.ini file? If so, how would I set that up? I’m not the admin on the server, so I can only add/modify files in /script/.

Hi,

Can you be more specific, are you getting any error messages on screen or in your error log?

First, set error_reporting(E_ALL); and check your logs, as @fretburner said.

One server, one ini file. You can only use ini_set but I would not recommend changing it “on the fly”.
So, make it work in your both cases and, also, have your PHP versions synchronized (make both 5.3 if possible). Also, check your MySql versions.

There are changes between versions 5.2 and 5.3 that might break code either way.
5.3 has quite a few changes. http://php.net/migration53

Short of searching your code, error messages are your best bet for finding the problems.

Could just be casing as well. Ran into this before looking for “table” that should have been “Table”, where one server is case sensitive, the other is not.

Error reporting is currently set at 6143 according to phpinfo. Where would I go to view the log file?

error_log : no value