execute php script in crone job

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jyaseen
    New Member
    • Feb 2010
    • 21

    execute php script in crone job

    How can I run a .php file in cronejob . this .php script file include database conectivity too . is it possible to use Mail function in this script .

    I am using the server bluehost.com . I am totally new to Cronejob . so give me a detailed replay.

    Advance thanks for the replay...
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    This is not a PHP question. Please contact your hosting provider for information on how to use their software.

    Comment

    • itsloop
      New Member
      • May 2009
      • 18

      #3
      you can run your crons in two ways if you using for cpanel

      then you will just use like below:
      php -f -q /var/www/abc.php[your file path with doc root (you have to check the include files path wheter they working or you change the path here)]

      or if you have like plesk then you can use

      cron http://www.example.com/cron.php

      Comment

      Working...