DIGIT-ARC read-only archive · snapshot: July 23, 2026

Need a cron job file to execute the PHP script

7 posts · originally from https://geek.digit.in/community/threads/need-a-cron-job-file-to-execute-the-php-script.112215/

furious_gamer
furious_gamer Original post #1
Apr 3, 2009 at 4:24 PM
Hi guys,
I have a database backup script which works perfectly. Now i need this script to run automatically so that no one is need to take database backup.

Will any of you guys give me a simple cron-file to do this along with a link to how to execute the shell script in the hosting server. Please guys help me....
furious_gamer
Apr 3, 2009 at 4:40 PM
^^ You are talking about Corn Job and i am talking about Cron Job...Please read carefully before you post...
kalpik
kalpik #3
Apr 3, 2009 at 5:43 PM
Use wget.. wget *server.com/path/to/file.php > logfile
krates
krates #4
Apr 4, 2009 at 1:23 AM
if you use cpanel or lxadmin there is some option in it to do cron jobs..
furious_gamer
Apr 4, 2009 at 4:16 PM
Use wget.. wget *server.com/path/to/file.php > logfile

Will use it....

if you use cpanel or lxadmin there is some option in it to do cron jobs..

Yes, my hosting plan has a cpanel and hurrah! I see a option called Cron Manager there.. Now what i need to do is just write the command and set the interval...:grin:
F
FilledVoid #6
Apr 29, 2009 at 9:27 AM
Reporting Spammer shoe salesman after Rajkumars post. ^
A
amohit #7
Aug 5, 2009 at 10:15 AM
Hi guys,
I have a database backup script which works perfectly. Now i need this script to run automatically so that no one is need to take database backup.

Will any of you guys give me a simple cron-file to do this along with a link to how to execute the shell script in the hosting server. Please guys help me....

exactly my problem.
I wrote a backup.php script which dumps the data into a file. Then I email this file as attachment to a backup gmail id.
saved for ever!
On my system I have a batch script which executes iexplorer.exe <url of the php file>
And i have used windows scheduler to run this batch script.

Regards,
Mohit