Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Ok, I can confirm you that the problem is not in your script, if you had any doubt.
Now, where are you running this script ?
Windows or Linux/BSD ?
Are you running in sage mode ?
I suspect that the debug might be sent to the site error log, if nothing is displayed when you run it..
Try to put those calls at the top of your file:
PHP Code:
ini_set('display_errors', true); ini_set('log_errors',true); ini_set('error_log','php.log'); error_reporting(E_ALL);
This should display any notices/warnings AND/OR log them to a text file named php.log in the same directory than your script.
Try to place in your "or die()" call an echo of $php_errormsg.
This variable should hold the last error to have occured in the running script too.
I'm sure that if we can have access to PHP log, we will find what the problem is.
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 11-21-2007 at 11:28 AM..
|