RE: [PHP] I'm prepared to feel like an idiot... But I just simply need the answer :)
| From: | Bastien Koert | Date: | Wed, 01 Aug 2007 13:16:57 +0000 |
| Subject: | RE: [PHP] I'm prepared to feel like an idiot... But I just simply need the answer :) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-259989@lists.php.net to get a copy of this message | ||
I have had success in running CLI php pages from a bat file fired via a scheduled task. Since the
output can be limited I would suggest adding some logging functionality to the page to trap errors
and write them to a file that you can use to analyze any issues.
bastien> To: php-general@lists.php.net> From: japruim@raoset.com> Date: Wed, 1 Aug 2007
bastien> 08:49:34 -0400> Subject: [PHP] I'm prepared to feel like an idiot... But I just simply need
bastien> the answer :)> > Hi All :)> > I have a php script that I am attempting to run from the
bastien> CLI to > connect to a MySQL database and update a field. but when I run it > with this
bastien> command: php cronjob.php it prints out the script on screen > but doesn't process it...>
bastien> > Running: php-r"phpinfo();" prints out the standard phpinfo screen.. > and I
bastien> don't think I should have to write it differently to make it > run from the command line
bastien> right?> > HELP! I'm desperate... I would offer to name my first born after > you...
bastien> But he's already been born :)> > > --> > Jason Pruim> Raoset Inc.>
bastien> Technology Manager> MQC Specialist> 3251 132nd ave> Holland, MI, 49424>
bastien> www.raoset.com> japruim@raoset.com> >
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE