|
Posted by AnrDaemon on 11/12/80 12:00
Greetings, Paul Lautman.
In reply to Your message dated Thursday, January 3, 2008, 01:52:36,
> I have a simple script that has been running as a cron job for about 2
> years. Recently my hosting company moved to new servers and now the job does
> not run.
> They have said that "The server configuration is newer and your script will
> not run as it's a PHP file which contains some HTML."
It's most silly answer I have heard. And it is nominated as the siliest one in
the started year. What a shame!
> By this I think they mean that there is some HTML output outside the <?php
> ?> braces.
It's not a problem for PHP itself.
> Is it really the case that there is a configuration that will not allow
> output outside the braces?
No.
Please check the way You are using to start Your crontab job.
Basically, it should contain a string like:
/usr/local/bin/php -f /home/username/path/jobfile.php
Some companies configure crontab to send any output generated by user
jobs back to the user's email.
If You do not want to flood Your email address from crontab output, make sure
Your job does not output anything except error messages.
--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>
[Back to original message]
|