Learn PHP Code - Introduction

Learn PHP - Introduction
This page will enlighten you on how to install and setup PHP along with the MySQL for running the php scripts.
Installation on windows using wamp server -
  • Download WAMP server from any internet site(e.g www.wampserver.com – official site)
  • Run the installation
  • Start all the services of wamp server
First steps to run php scripts -
    After you have installed php on your system you can check if installation is successful or not by steps given below -
  • Put your scripts into www folder of wamp(otherwise scripts will not run)
  • Open the web browser
  • Type http://localhost
  • you will see the wamp server home page if not then your installation is not successful
To run the php script you should save the file with .php extension into www folder. Thus you can create your own folder into www directory and save your scripts into your own folder. To run the scripts directly without creating folder you can simply write file name after localhost for e.g suppose your file name is first.php then you should write http://localhost/first.php into your web browser as URL and easily run your script without putting it into your separate folder but it should be saved into www directory(Main directory to run the php script).
Now that you have successfully created a working PHP script, it is time to create the most famous PHP script! Make a call to the phpinfo() function and you will see a lot of useful information about your system and setup such as available predefined variables, loaded PHP modules, and configuration settings.
You can save the following code as info.php file and run it on your browser as http://localhost/info.php
<?php phpinfo(); ?>

We share most popular or viral licensed and open sourced kanda, video, graphics, ebook, audiobook or other entertaining materials for free of cost. Our purpose is not to interfere other's life but to entertain youth of this world. Major contents this site are not for moral lesson but just for fun.