Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    10

    Default exceute PHP in CRON

    Hello;

    How can I execute PHP file to be excuted in cron task ?

    regards

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    recommended way

    php -f /home/yoruusername/file.php


    other ways, but totally unrecommended:


    wget --spider http://www.yoursite.com/file.php
    or...this is a funny one, i had a client doing it like this:

    lynx http://www.domain.com/cron/dayly_cron.php


    )

Similar Threads & Tags
Similar threads

  1. CRON and PHP scripts
    By appcomm in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-09-2008, 07:05 PM
  2. Cron php error
    By monino in forum New User Questions
    Replies: 2
    Last Post: 07-12-2007, 09:53 PM
  3. Cron jobs from PHP
    By awibble in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-20-2004, 12:01 PM
  4. cPanel cron jobs or cron.daily , cron.hourly , etc.?
    By spaceman in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-01-2004, 08:16 PM
  5. Cron - PHP Script
    By BeNE.WS in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-26-2003, 03:52 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube