Test your skills
I am new and in learning phase.
can any one help me how can I launch PHP application on local host???
It is an acronym stands for hypertext preprocessor. PHP is a server side scripting language use to develop web applications. scripts are executed on server.
For this we took a basic application called WAMP server. It stands as windows, apache, mysql, php.
For writing a simple PHP code i have gone through the following steps:
Limitation: port 80 must be released and make it available for wamp server. URL: http://techreviews.in/port-80-unavailable-step-by-step-guide-to-release-port-80-and-make-it-available-for-apache-server/
echo "Hello World";
Limitation: be sure that you are online with your wamp server.
To launch PHP on your localhost you need to use Apache server and mysql. Install xampp or warm-up in your PC. It comes with both Apache server and mysql. As you are new, I will describe the process with only xampp on windows.
You can go to http://www.apachefriends.org/en/index.html and download XAMPP. Then you have to install it on your PC. After installation is complete you should run “XAMPP Control Panel” then start Apache and mysql service.
It will look something like this:
Now open any web browser, for example Internet Explorer or Mozilla Firefox. GOTO http://localhost.
You can notice that localhost is running.
How to use it?
If you keep a PHP file in “htdocs” folder inside “xampp” folder. For example if you keep “test.php” file in “htdocs” folder and write some PHP code in the file. For example:
<? PHP echo “Hallo World”; ?>
Now if you go to http://localhost/test.php you can see that the code is being executed.