EDIT: Ok, I am really confused. My host told me he thinks (not always a good sign!) that the servers are set to Eastern Time blah blah blah. Now, I set up the above to run so that I would get it whilst I was on now. I haven't got anything, so I checked the time. I used

<html>
<body>
<?php echo gmdate("H i s M d Y");
?>
</body>
</html>

(just checking I did it right!) and it said that the server was running in GMT. So I set up another cron job and that hasn't worked. So what have I done wrong and what time zone is the server in?

Thanks

billdaviesSenior WebHelper

Joined: 22 Jan 2002
Posts: 107
Location: UK

Posted:
Tue Nov 05, 2002 6:59 pm (15 years, 4 months ago)

Whoops! Forgot everything else on the crontest.php file.

That file then worked (I tested it!) but the cron thing still doesn't work. I even set it up to do every hour on a minute and it still didn't work so there is a problem somewhere. I tried dropping all the random stuff I don't understand at the front and just put the URL but that didn't either.

Just one thing: I would try creating another PHP script which sends a different email and NOT giving out the address Then see if it works. If not then I would ask your host.

________________________________

billdaviesSenior WebHelper

Joined: 22 Jan 2002
Posts: 107
Location: UK

Posted:
Wed Nov 06, 2002 4:02 pm (15 years, 4 months ago)

You have 32 new email addresses. Thanks....!

I got this from my host:

"I am not sure if a PHP file can be run by Cron, the only thing I have
experience with is Perl files and so on. The Cron jobs are running correctly
thought because we are using one to backup our MySQL databases every night."

That sounds like right rubbish to me. I thought he was really helpful but he doesn't seem to have a clue now I've given him my money!

Where do I go from here, is there something else I can do to test if Cron actually works with PHP?

You cannot post new topics in this forum.You cannot reply to topics in this forum.You cannot edit your posts in this forum.You cannot delete your posts in this forum.You cannot vote in polls in this forum.