Page 1 of 1

PHP error report?

Posted: Mon Oct 12, 2009 5:34 pm
by jint
I've just managed to setup a Cron job using a php script and my admin email reply back I knoe get is just:

X-Powered-By: PHP/5.2.10
Content-type: text/html

Should it say more than this? Like the number of processes etc or is this telling me something I don't want to know?

Re: PHP error report?

Posted: Mon Oct 12, 2009 5:40 pm
by requinix
You shouldn't even be getting that.

What's your cron job look like?

Re: PHP error report?

Posted: Mon Oct 12, 2009 5:49 pm
by jint
Looks like this:

/usr/bin/php /home/username/public_html/cgi-bin/image_library_maintain_cl.php

Re: PHP error report?

Posted: Mon Oct 12, 2009 6:03 pm
by requinix
Change that to

Code: Select all

/usr/bin/php -q /home/username/public_html/cgi-bin/image_library_maintain_cl.php
The -q will suppress the headers: those are what you saw in the email. No output means no email.