how to set cron job on hostgator server?

  1. Create a file :
    my-script.php
  2. write following code in your file :
    mail(“myemail@myserver.com”, “test email”, “test message”);
  3. Now open your server cpanel and find advanced setting :
    (Cron setting)
    cron
  4. Now add new cron job and set followingcommand with your script.

          php -q absolutePath/my-script.php

 

Share on Google+Share on FacebookTweet about this on TwitterEmail this to someone
  
Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.