The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron tab php script

Discussion in 'General Discussion' started by opticempire, Jul 9, 2003.

  1. opticempire

    opticempire Member

    Joined:
    Jan 13, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    just wondering how under standard mode i can get a php script to run every month..... say the script is located at http://mydomain.com/script.php
    plz help, and i dont think lynx is installed...

    cPanel.net Support Ticket Number:
     
  2. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    1. locate php binary(sometimes under /usr/local/bin/php
    2. execute php binary, followed by php script in cron

    elementary my dear opticempire

    cPanel.net Support Ticket Number:
     
  3. kcdworks

    kcdworks Well-Known Member

    Joined:
    Jul 28, 2002
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    You'll need to route error messages to /dev/null or you'll get an email with errors every time the cron runs, since php isn't (yet) meant to be run from the command line.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page