Results 1 to 2 of 2

Thread: New Cron Job

  1. #1
    Join Date
    Mar 2004
    Location
    Westlake, OH
    Posts
    62

    New Cron Job

    If I want to run a php script in the cron job do I just run the command such as php myscript.php?

    Andy

  2. #2
    Join Date
    Apr 2005
    Location
    silicon and earthquakes
    Posts
    255
    First check if your host has php command line installed (as opposed to Apache module). Just execute php myscript.php from your command line.

    Also cron usually does not preserve the environment settings so you want to use full paths (i.e. /usr/bin/php myscript.php vs. php myscript.php).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •