Running Php CLI Scripts on Linux

 
0
 

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

$ php helloWorld.php

<?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..

 
0
 

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 3 Years Ago
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article