Request to check run php in Unix shell

Hi I m running a php file in Unix shell

it says php cpmmnad not found

bash-3.2$ cat echo.php
<? php

echo"heelo world"

>?
bash-3.2$ php echo.php
bash: php: command not found

actually I want to change certain thing a in a website using php script so I m beginner and trying to learn Kindly guide regardign this

Thanks
Mani

try php-cgi . and fixing your syntax

<?php
echo "hello world"
?>

Hi Thanks for the reply.

still it shows the error, my file name is echo.php

bash-3.2$ php-cgi echo.php
bash: php-cgi: command not found
bash-3.2$ 

Actually I also want to apply certain changes on a webpage using PHP ny help or info regarding this

what is your OS ? is php installed in your OS ?

Hi

I have Unix OS
And, I have downloaded XAMPP on my system accord to some guidelines from websites.

Thanks
Mani

if you execute the below command, what is the output ?

 
which php

Hi

it seems its not installed properly.

can anybody guide about its installation

the error code is below

bash-3.2$ which php
which: no php in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/mgrover/bin)

Thanks
Mani