PHP error report?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jint
Forum Newbie
Posts: 6
Joined: Mon Oct 12, 2009 1:45 pm

PHP error report?

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP error report?

Post by requinix »

You shouldn't even be getting that.

What's your cron job look like?
jint
Forum Newbie
Posts: 6
Joined: Mon Oct 12, 2009 1:45 pm

Re: PHP error report?

Post by jint »

Looks like this:

/usr/bin/php /home/username/public_html/cgi-bin/image_library_maintain_cl.php
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP error report?

Post 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.
Post Reply