On Aug 1, 2007, at 9:55 AM, Stut wrote:

Jason Pruim wrote:
I have a php script that I am attempting to run from the CLI to connect to a MySQL database and update a field. but when I run it with this command: php cronjob.php it prints out the script on screen but doesn't process it... Running: php-r"phpinfo();" prints out the standard phpinfo screen.. and I don't think I should have to write it differently to make it run from the command line right?

Sounds like you're not using <?php and ?> tags to surround your code. Without those PHP will simply output the content of the file rather than "running" it.

-Stut

Hey Stut,

Yeah that was the result of the first issue which led to the second... Newbie mistake I guess... :) Thanks for looking!

--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to