View previous topic :: View next topic |
Author |
Message |
Tampa1adam -
Joined: 27 Jan 2007 Posts: 2
|
Posted: Sat Jan 27, 2007 3:47 am Post subject: Scheduling PHP scripts to run? |
|
|
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 |
|
 |
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
Posted: Sat Jan 27, 2007 4:52 am Post subject: |
|
|
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 |
|
 |
Tampa1adam -
Joined: 27 Jan 2007 Posts: 2
|
Posted: Sat Jan 27, 2007 7:01 am Post subject: |
|
|
<?
$you = "amazing";
for ($counter = 10;$counter <= 10000000;$counter += 1) {
echo "<BR>".$you;
}
?> |
|
Back to top |
|
 |
|