In this post i’m going to write about Web development with PHP for newbies. When your are going to learn new technology you have one motto from the starting, Develop a Web Application in real life example, So today you will learn Web Development with PHP from the Scratch with example application.
Lets Starts With Simple and quick Definition.
Table of Contents
What is PHP
PHP stands for Hypertext Pre-processor. PHP is a powerful and widely-used open source server-side scripting language to write dynamically generated web pages
A PHP file contains PHP tags and ends with the extension “.php”
Requirement for Web Development
Download XAMPP any version from the official Website and Install it.
After Installation you have XAMPP control panel like this
Your Default installation directory C Drive (C:\) with folder name XAMPP
Inside the XAMPP folder you will find htdocs folder where you have to save your php file
So before start developing your first application in php, start the server from control panel
Here i’m starting MySQL server as well because we use data for web development.
Start the Notepad++ and Start writing code
Basic PHP Rules
- Every PHP code Start with
123<?php// your code?>
- Save with .php example :- Demo.php
- Save in C:\xampp\htdocs folder
First Basic PHP program
echo "This is my first step";
//echo use in php for comment and (;) for termination
Save this file with name Demo.php and open you browser and type localhost/Demo.php
hurray you guys successfully run your first program.
this is the basic of php, In next post you will find how PHP work with MySQL database.
I hope this tutorial helped you to learn PHP . To get the latest news and updates follow us on twitter & facebook, subscribe to our YouTube channel. And If you have any query then please let us know by using comment form.