Start New Discussion within our Web Development Community

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

This question has already been answered. Start a new discussion instead.