PDA

View Full Version : php problems with godaddy?




chainprayer
Jan 8, 2009, 06:46 PM
anyone else ever have any problems using php with godaddy? i have a simple php script set up to connect to my sql database. when there is an error in the code it returns a blank page instead of an error with a reference to the error line. anyone else have this happening?



angelwatt
Jan 8, 2009, 07:03 PM
If GoDaddy doesn't give you access to the PHP error log file then you can try to catch the errors using try..catch and/or die statements.

SrWebDeveloper
Jan 8, 2009, 10:01 PM
A blank page usually means a "fatal" error such as a typo in a function name, missing ; on the end, syntax error as the script is intepreted.

You can trap (PHP4:most, PHP5: almost all) errors with set_error_handler() callback function but be sure to read the exceptions and notes on this page (http://us3.php.net/set-error-handler) at php.net.

CANEHDN
Jan 8, 2009, 11:23 PM
You could post some of your code and maybe we could help you.

DipDog3
Jan 9, 2009, 03:08 PM
A blank page usually means a "fatal" error such as a typo in a function name, missing ; on the end, syntax error as the script is intepreted.

I second this. Check that all lines of codes end with ; and that all comments are probably commented.

When I can't find the problem, I will comment out sections of the code until the PHP file runs, then I can narrow down the problem.