write and run a php file in Ubuntu Linux

to write a php file type following in Applications->Accessories->Terminal:
gedit first.php

then text editor opens type the following code:



save and  type  php first.php in terminal

then you will get output:

Hello World  $example

Monday 26 September 2011

write and run a php file in Ubuntu Linux

to write a php file type following in Applications->Accessories->Terminal:
gedit first.php

then text editor opens type the following code:



save and  type  php first.php in terminal

then you will get output:

Hello World  $example