Cron jobs.... Lots of errors.

Discussion in 'PHP' started by jkashu, Apr 30, 2008.

  1. #1
    My cron jobs won't run... I just get lots of errors. My scripts run fine if you run them manually, and they are set to 777.

    Here is an example:

    These are the errors I get:

    /var/chroot/home/content/z/e/v/zevvo/html/sp/demo/parser.php: line 1: ?: No such file or directory
    /var/chroot/home/content/z/e/v/zevvo/html/sp/demo/parser.php: line 3: //: is a directory
    /var/chroot/home/content/z/e/v/zevvo/html/sp/demo/parser.php: line 4: syntax error near unexpected token `('
    /var/chroot/home/content/z/e/v/zevvo/html/sp/demo/parser.php: line 4: `$starttime = explode(' ', microtime());'

    This is the begining of the script:

    <?
    
    // Start counting time for the page load
    $starttime = explode(' ', microtime());
    $starttime = $starttime[1] + $starttime[0];
    PHP:

     
    jkashu, Apr 30, 2008 IP
  2. eric_basher

    eric_basher Peon

    Messages:
    185
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    your script is not complete , write all these code so can figure out!
     
    eric_basher, Apr 30, 2008 IP