Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autoload a webpage

Status
Not open for further replies.
May 22, 2002
63
0
0
GB
Hi,

How do I setup a linux system using CRON to automatically open/view a PHP page (or just execute its content!)

Ideally I want a php page to be run every morning at 1am that performs a number of email routines via data from a mysql database.

Is CRON the right area to be looking in for this type of task?

Cheers!

Anders
 
or the script can start with:

#!/usr/local/bin/php

and let it "chmod +x script.php"
 
In the ASP world I left, we would load iexplore <URL>. PHP can run from the command line which is just cheeky.

 
Great - thanks for all your suggestions it works treat now!

I did the following

0 1 * * * /usr/local/bin/php ~/secure/crm/admin/cron.php

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top