Jump to content

need help please


john_zakaria

Recommended Posts

hi everyone.. please i want to know how to create a cron job from a file in php i made this command but it does not get any response. it get the error die message

 

i made it in php and i serched online in google and many websites and i did not solve my problem

 

my php command is:

 

 

exec("crontab -e * * * * * /usr/local/bin/php -f /home/survey/public_html/john/cron/snd2.php") or die ("<br><br>Error in executing Cron file");

 

so i want to create or use my cron job using php.. any help

Link to comment
Share on other sites

crontab -e will open a text editor and let you edit your crontab file.

 

You need to make a file and place the following in it.....

 

* * * * * /usr/local/bin/php -f /home/survey/public_html/john/cron/snd2.php

 

You can then add to your crontab using....

 

crontab fileyoujustmade

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.