X

Learn How to Become a Web Developer With PHP

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.

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

  1. XAMPP  Server
  2. Notepad/Notepad++
  3. Chrome/Mozilla   browser

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

C:\xampp\htdocs

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

  1. Every PHP code Start with
    <?php 
        // your code
    ?>
  2. Save with .php  example :- Demo.php
  3. Save in C:\xampp\htdocs folder

First Basic PHP program

<?php
 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.

Categories: CSS HTML MySQL PHP
Jamaley Hussain: Hello, I am Jamaley. I did my graduation from StaffordShire University UK . Fortunately, I find myself quite passionate about Computers and Technology.
Related Post