...

View Full Version : important question



john_zakaria
12-08-2010, 06:36 AM
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 javascript.. any help

Old Pedant
12-08-2010, 07:05 AM
JavaScript would have *NOTHING* to do with creating a cron job. I'm not even sure why you'd want to create one with PHP, but I suppose that at least might be possible. But JS won't help you.

abduraooft
12-08-2010, 07:15 AM
Along with what OP said, please keep in mind the items listed at http://javascript.about.com/od/reference/a/cannot.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum