I've got a script that PIPES an email address but it's not doing what I need it to do and I believe it's returning some php FATAL errors. I have it setup to log some responses already and write the responses to a .html file however how do I get the FATAL errors to log in that same .html file so I can debug my script?
Change the cron command to something like
php myJob.php >> stdout.log 2>> stderr.log
This should redirect the regular output to stdout.log
and the errors to stderr.log
.