Learn PHP Programming

A backend server scripting language, and a powerful tool for making dynamic and interactive Web pages. Learn each topic with examples and output.

PHP Introduction
Control Structures
Php Forms
Php Advanced

Php Installation

To run PHP in your local machine you need to install a web server, there are two most used softwares used that is, Xampp and Wamp

Xampp : Steps

Download XAMPP:

Visit the official XAMPP website (https://www.apachefriends.org/index.html ) and download the latest version suitable for your Windows environment (32-bit or 64-bit).

Installation:

Start Apache and MySQL:

Testing PHP:

Create a new PHP file (e.g., "test.php") in the "htdocs" folder within your XAMPP installation directory (usually located in C:\xampp\htdocs).

Add some PHP code to "test.php," such as:

    <?php
        echo "Hello there !";
    ?>

Open your web browser and navigate to "http://localhost/test.php." If PHP is working correctly, you'll see a page with Hello there text

Wamp : Steps

Download WampServer:

Visit the official XAMPP website (https://www.wampserver.com/ ) and download the latest version suitable for your Windows environment (32-bit or 64-bit).

Installation:

Follow next steps of Xampp to setup and run your first php program !

Now that you have done installation of Php, let's learn variables in php


Share this page on :

=