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

From: Date: Wed, 01 Aug 2007 13:55:32 +0000
Subject: Re: I'm prepared to feel like an idiot... But I just simply need the answer :)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-259997@lists.php.net to get a copy of this message
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 -- http://stut.net/

« previous php.general (#259997) next »