Re: I'm prepared to feel like an idiot... But I just simply need the answer :)

From: Date: Wed, 01 Aug 2007 14:38:48 +0000
Subject: Re: I'm prepared to feel like an idiot... But I just simply need the answer :)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-260002@lists.php.net to get a copy of this message
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 japruim@raoset.com

« previous php.general (#260002) next »