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/.
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.
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.