I suggest installing xdebug (
http://xdebug.org/)
You'll need to download the extension and configure the extension in your php.ini file.
What type of server are you running? Windows of Linux?
Windows
1) .htaccess will not work under windows
2) download php_xdebug-2.0.2-5.2.5.dll from xdebug.org
3) put the dll in your php extensions directory (assuming it's c:\php\ext... you'll need to check yourself)
4) add this to the top of your php script (your mail script)
Code:
ini_set ('display_errors', 'ON');
error_reporting (E_ALL);
ini_set ('xdebug.trace_format', '0');
ini_set ('xdebug.auto_trace', 'On');
ini_set ('xdebug.collect_params', '0');
ini_set ('xdebug.collect_includes', 'On');
ini_set ('xdebug.collect_return', 'On');
ini_set ('xdebug.collect_params', '0');
ini_set ('xdebug.trace_output_dir', '/tmp/trace');
ini_set ('xdebug.trace_output_name', 'xdebug.%c.%p');
ini_set ('xdebug.var_display_max_data', '16384');
ini_set ('xdebug.collect_vars', 'On');
xdebug_start_trace();
5) add these lines to your php.ini file
Code:
error_log = "c:\php\error.log"
zend_extension_ts="c:\php\ext\php_xdebug-2.0.2-5.2.5.dll"
Restart IIS
Code:
Start -> Run -> issreset /restart
or
Code:
Start -> Run -> net stop w3svc
Start -> Run -> net start w3svc
Visit your broken page and then look at the tmp folder and php folder for the error and trace logs.
Linux
1) download xdebug.so from xdebug.org
2) put it in your extensions directory (assuming it's "/usr/local/php/modules/")
3) add this to the top of your php script (your mail script)
Code:
ini_set ('display_errors', 'ON');
error_reporting (E_ALL);
ini_set ('xdebug.trace_format', '0');
ini_set ('xdebug.auto_trace', 'On');
ini_set ('xdebug.collect_params', '0');
ini_set ('xdebug.collect_includes', 'On');
ini_set ('xdebug.collect_return', 'On');
ini_set ('xdebug.collect_params', '0');
ini_set ('xdebug.trace_output_dir', '/usr/local/php/trace');
ini_set ('xdebug.trace_output_name', 'xdebug.%c.%p');
ini_set ('xdebug.var_display_max_data', '16384');
ini_set ('xdebug.collect_vars', 'On');
xdebug_start_trace();
4) add these lines to your php.ini file
Code:
error_log = "/usr/local/php/error.log"
zzend_extension="/usr/local/php/modules/xdebug.so"
Restart apache via SSH/telnet
Code:
apachectl stop
apachectl start
or