date_default_timezone_set() and cron job

Discussion in 'PHP' started by trichnosis, Mar 2, 2008.

  1. #1
    Hi;

    I have a cron job (called x.php) for one of my sites which is hosted on a hostgator server.

    I have used date_default_timezone_set("Paris/Europe") in my x.php file.

    When I call x.php from browser, It's OK but when cron job runs, it shows me date_default_timezone_set() function as a fault.

    Any comment for this?

    Regards
     
    trichnosis, Mar 2, 2008 IP
  2. NwS

    NwS Well-Known Member

    Messages:
    633
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    145
    #2
    I guess that is a cron job call error. How do you run/call the cron job?
     
    NwS, Mar 2, 2008 IP