Scheduling PHP scripts to run?

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Tampa1adam
-


Joined: 27 Jan 2007
Posts: 2

PostPosted: Sat Jan 27, 2007 3:47 am    Post subject: Scheduling PHP scripts to run? Reply with quote

This may be a question for the Abyss Server section but anyway, Here's my problem:

Keep in mind my Abyss server is hosted locally. I have a php script that copies the entire htdocs directory to a mapped hard drive on the server(my second drive is what's mapped).

I do this cuz I work directly off the server and It's too much of a hassle to save a file local then upload it to the server so I just wrote this script to create a backup blah blah blah.

Now I could just open this script each time I want to make a backup, but sometimes I forget, so I was wondering, is there any way to create a schedule in Abyss to run that script at say 3 AM everyday?

Any suggestions would help. I've just started using PHP(and Abyss & MySQL for that matter) so if there's a better/more efficient way to do what I'm trying to accomplish some way else please let me know.

I tried searching for something like this but to no avail :(.

Thanks in advance!
Back to top View user's profile Send private message
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Sat Jan 27, 2007 4:52 am    Post subject: Reply with quote

Code:

@echo off
"PATH TO PHP (IE; C:\php5\php.exe)" "LOCAL PATH TO .php FILE (IE; C:\FILE.php)"


I believe that will work just change the paths then save it in a .bat file, next go to start-> all programs-> accessories-> system tools-> scheduled task -> MAKE A NEW TASK AND HAVE THE .BAT RUN WHEN YOU WANT IT
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
Tampa1adam
-


Joined: 27 Jan 2007
Posts: 2

PostPosted: Sat Jan 27, 2007 7:01 am    Post subject: Reply with quote

<?

$you = "amazing";

for ($counter = 10;$counter <= 10000000;$counter += 1) {
echo "<BR>".$you;
}

?>
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group