sdaniels Posted August 7, 2006 Share Posted August 7, 2006 I have PHP running on a winXP box. Does anyone know how to run a script from the command line? I need to query the MySql database and generate an email daily from task scheduler. Quote Link to comment https://forums.phpfreaks.com/topic/16800-run-script-from-command-line-in-ms-windows/ Share on other sites More sharing options...
ronverdonk Posted August 7, 2006 Share Posted August 7, 2006 I have no experience with that. But you could have a look in the PHP documentation, "Chapter 43. Using PHP from the command line" at link[url=http://nl2.php.net/manual/en/features.commandline.php]http://nl2.php.net/manual/en/features.commandline.php[/url]and take it from there. Good luck! Quote Link to comment https://forums.phpfreaks.com/topic/16800-run-script-from-command-line-in-ms-windows/#findComment-70694 Share on other sites More sharing options...
ignace Posted August 7, 2006 Share Posted August 7, 2006 http://www.phpfreaks.com/forums/index.php/topic,103143.0.html <-- don't know if this is gonna help you, but it's worth checking outthe manual on php.net http://nl2.php.net/manual/en/features.commandline.php, check if this gives you any answersP.S.: sdaniels as in steven daniels? from sint-truiden? because if so, you will probably know me ;D Quote Link to comment https://forums.phpfreaks.com/topic/16800-run-script-from-command-line-in-ms-windows/#findComment-70696 Share on other sites More sharing options...
sdaniels Posted August 7, 2006 Author Share Posted August 7, 2006 I figured it out for anyone else that might have this issue.If your running windows you need to set the sceduled task like this:C:\PHP\php.exe c:\windows\here.php Quote Link to comment https://forums.phpfreaks.com/topic/16800-run-script-from-command-line-in-ms-windows/#findComment-70725 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.