Tuesday, September 27, 2011

Running a PHP Script

PHP is the simplest language among server side programming languages.There is no need of virtual machines to execute php code in clients computer.It is totally different from other languages like C , C++ , VB etc.To run a PHP script we need to install a package Xampp Or Wamp. 


Download And Install Xampp

After installing the package Type your PHP code in some text editor like notepad
Then save the program as somename.php to Htdocs folder ( In windows its default path is C:\xampp\htdocs\ ) 
Then open Browser and goto the address http://localhost/Program_name.php
Now the output will be displayed if their is no errors.
You may create folders in htdocs if you want to access the folder change the path to 
http://localhost/Foldername/Filename.php






Tags : How to compile a php script , How to run php script , how to obtain php scripts output , get php code's output , processing  a php code , how to compile php code  , how to run a php program , how to compile php program

No comments:

Post a Comment