Running Php CLI Scripts on Linux


Hi all ,
I have collected php shell scripts on various sites on web. However the only script which works is this :

$ php helloWorld.php

$var = "honey";
print "hello $var"; 
echo "world";

Any other script which has different commands doesn't work on the system ?? My PHP version is PHP 5.1.6 (cli) which comes with RedHat5 Server OS.
Any idea will be very very appreciated. Please urgent..


Some other scripts also work. But it would be good if somebody offers any good configuration for php.ini or httpd.conf

Question Self-Answered as of 4 Years Ago
This question has already been solved: Start a new discussion instead
Start New Discussion
Tags Related to this Article