RE: [PHP] Running a php script at a giveb time
Jeremy Brant wrote: In case you didn't know, you can run PHP scripts without a web server. Thanks but... Can you do this on NT (Sorry) as well? I am using NT with MySQL in the CGI configuration. Shimon == Shimon Dekel Israeli Vegetable Board Information System Manager 2 Karlibach St Tel-Aviv 67132 [EMAIL PROTECTED] www.yerek.co.il == -Original Message- From: jeremy brand [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 8:46 AM To: Shimon Dekel Cc: '[EMAIL PROTECTED]' Subject:Re: [PHP] Running a php script at a giveb time Sure. I would use cron. see crontab(5). You could also use any other type of scheduling software. In case you didn't know, you can run PHP scripts without a web server. Simply compile php without apache. Then you can run your script like this: /usr/bin/php your_script.php (if you install the php binary in /usr/bin) Hope this helps. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more Get your own Free, Private email at http://www.smackdown.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer On Tue, 16 Jan 2001, Shimon Dekel wrote: Date: Tue, 16 Jan 2001 09:16:36 +0200 From: Shimon Dekel [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: [PHP] Running a php script at a giveb time Hi, I need to run a PHP script or a PHP page, few times every morning, say 10 times between 7am and 8am every morning to see if a cretin database condition is met. Is it possible? == Shimon Dekel Israeli Vegetable Board Information System Manager 2 Karlibach St Tel-Aviv 67132 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.yerek.co.il www.yerek.co.il == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Running a php script at a giveb time
Shimon Dekel [EMAIL PROTECTED] wrote in message 2B851D414E69D411923000D0B789259A0697@EXCHANGE">news:2B851D414E69D411923000D0B789259A0697@EXCHANGE... Jeremy Brant wrote: In case you didn't know, you can run PHP scripts without a web server. Thanks but... Can you do this on NT (Sorry) as well? I am using NT with MySQL in the CGI configuration. Shimon The pre-compiled binaries package of PHP for Windows includes the stand-alone CGI program, php.exe. You just need to find use the WindowsNT scheduling system and tell it to either run php.exe directly, or make up batch files to do the job. -- Rick Hodger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Running a php script at a giveb time
Hello Shimon, Information to generally setup a cron tab : How do I set up a cron job on Linux? --- http://www.faqts.com/knowledge_base/view.phtml/aid/1005/fid/436 In regards to php : How can I make a PHP script be called from the cron daemon? --- http://www.faqts.com/knowledge_base/view.phtml/aid/80/fid/32 Also, search mailing list for word 'cron' and many results will come about. Here's a link to such a search : http://marc.theaimsgroup.com/?l=php-generalw=2r=1s=cronq=b Good luck! -- Philip Olson http://www.cornado.com/ On Tue, 16 Jan 2001, Shimon Dekel wrote: Hi, I need to run a PHP script or a PHP page, few times every morning, say 10 times between 7am and 8am every morning to see if a cretin database condition is met. Is it possible? == Shimon Dekel Israeli Vegetable Board Information System Manager 2 Karlibach St Tel-Aviv 67132 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.yerek.co.il www.yerek.co.il == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Running a php script at a giveb time
Sure. I would use cron. see crontab(5). You could also use any other type of scheduling software. In case you didn't know, you can run PHP scripts without a web server. Simply compile php without apache. Then you can run your script like this: /usr/bin/php your_script.php (if you install the php binary in /usr/bin) Hope this helps. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more Get your own Free, Private email at http://www.smackdown.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer On Tue, 16 Jan 2001, Shimon Dekel wrote: Date: Tue, 16 Jan 2001 09:16:36 +0200 From: Shimon Dekel [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: [PHP] Running a php script at a giveb time Hi, I need to run a PHP script or a PHP page, few times every morning, say 10 times between 7am and 8am every morning to see if a cretin database condition is met. Is it possible? == Shimon Dekel Israeli Vegetable Board Information System Manager 2 Karlibach St Tel-Aviv 67132 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.yerek.co.il www.yerek.co.il == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]