vicker313 tech blog

August 22, 2009

Schedule Your Website to Run PHP File

Filed under: PHP — Tags: , — vicker313 @ 8:00 am

To schedule your website to run a particular PHP file (to email or some other things):

  1. Go to your website control panel
  2. Go to Cron Job (it is the scheduler in Linux system)
  3. Usually you can choose GUI method or coding method to set the schedule
  4. You need to set the minutes, hours, dates, months and weekdays
  5. For the command to be run:
    lynx -dump http://your.website.url/yourphpfile.php
    lynx is the command to execute the PHP file
  6. Usually you can key in the email to be sent when the scheduler execute the commands
Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: