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
https://forums.phpfreaks.com/topic/220994-need-help-please/
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
https://forums.phpfreaks.com/topic/220994-need-help-please/#findComment-1144311
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.