Start php programming language and run program using xampp, wamp and lamp Local Server. First create a project folder under the local server an run project localhost/project name.
Make a project directory :
If the local server is WAMP, then make a directory in c:\wamp\www
If the local server is LAMP, then make a directory in var\www\html
If the local server is XAMPP then make a directory in c:/program files\xampp\htdocsTesting Program :
Create a project folder in the Local Server after install Xampp or wamp Server and create file in the project folder and give name index.php
index.php is the default display page, that open in the browser when project name enter in the URL after localhost. That’s like:
if you create home.php file in the project folder then you need to enter in the URL:
Start PHP Project:
PHP start with <?php and end with ?>. All php code you can write under PHP starting and ending tag. If you want to display any text or elements, you need to set the texts or element in the echo statement or print statement.
In the PHP has some basic difference between PHP echo and print statements as well as how to use them to display output in the browser.