netfrugal Posted October 13, 2006 Share Posted October 13, 2006 I would like to run a simple php file that backs up my database. The file is in one of the virtual directories. I know I can do it with other ways, but I'm interested in how to do it on a windows OS, and using the windows scheduled tasks wizard - if possible.I've read that parameters need to be set up, but I don't quite understand what that means.Does anyone know how I can do this in a simple step by step fashion?thanks! Link to comment https://forums.phpfreaks.com/topic/23890-setting-up-a-scheduled-task-to-run-a-php-file/ Share on other sites More sharing options...
netfrugal Posted October 13, 2006 Author Share Posted October 13, 2006 Got it figured out!The best way to do this is to create a batch file that includes php.exe and the php file that needs to be executed:C:\php\php.exe C:\apache2\htdocs\emailscript.phpthen I set up the scheduled task to run the .bat file when I need it.Next thing to figure out is how to set up a cron job on linux to do the same thing. Link to comment https://forums.phpfreaks.com/topic/23890-setting-up-a-scheduled-task-to-run-a-php-file/#findComment-108612 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.