php server issues
Posted: Wed Jul 13, 2005 11:30 am
Hey guys,
I've got a little bit of a headache from this problem. I have some php code which sends out mail. But when I try to execute the script by going to webpage to run it /localhost/page.php I dont get any kinds of errors at all. It wont output anything when there is a syntax error. It wont complain if the mail cant be sent. I put an if statement around the mail(...) to output something on fail/success. It always fails.
If i run the same file using the php command - php page.php it works fine. Reports on errors and sends the mail.
I have checked the php.ini file to check the error_reporting and Ive added error_reporting(E_ALL) to the top of the scripts. But it wont work from the browser.
The server is running FC4, it has php 5.0.4 on it, Apache/2.0.54 (Fedora). I havent done anything crazy to the default install.
Hope this makes sense and someone can help.
Dave
I've got a little bit of a headache from this problem. I have some php code which sends out mail. But when I try to execute the script by going to webpage to run it /localhost/page.php I dont get any kinds of errors at all. It wont output anything when there is a syntax error. It wont complain if the mail cant be sent. I put an if statement around the mail(...) to output something on fail/success. It always fails.
If i run the same file using the php command - php page.php it works fine. Reports on errors and sends the mail.
I have checked the php.ini file to check the error_reporting and Ive added error_reporting(E_ALL) to the top of the scripts. But it wont work from the browser.
The server is running FC4, it has php 5.0.4 on it, Apache/2.0.54 (Fedora). I havent done anything crazy to the default install.
Hope this makes sense and someone can help.
Dave