PHP: Environment Setup & HelloWorld

0

Install and configure PHP, Web Server and MySQL database using XAMPP/WAMP/LAMP/MAMP


Install and configure PHP, Web Server and MySQL database using XAMPP/WAMP/LAMP/MAMP


In this blog, we will understand that how to Install and configure PHP, Web Server and MySQL database using XAMPP/WAMP/LAMP/MAMP and run our first common program which is "Hello World".


Installing and configuring PHP, Web Server, and MySQL database using XAMPP/WAMP/LAMP/MAMP is an easy process. Here are the steps:

*If image are looking blur then click on the image for HD quality.


1. Download and install the XAMPP/WAMP/LAMP/MAMP.

Install and configure PHP, Web Server and MySQL database using XAMPP/WAMP/LAMP/MAMP

2. Run the installer after that, a welcome page will appear.

Install and configure PHP, Web Server and MySQL database using XAMPP/WAMP/LAMP/MAMP

3.  Select the language of your choice.


Install and configure PHP, Web Server and MySQL database using XAMPP/WAMP/LAMP/MAMP

4. Select the components you want to install. Such as PHP, Apache Web Server, MySQL database, and phpMyAdmin.


Install and configure PHP, Web Server and MySQL database using XAMPP/WAMP/LAMP/MAMP

5. Select the folder you want to install the setup in.


Install and configure PHP, Web Server and MySQL database using XAMPP/WAMP/LAMP/MAMP

6. The installation will begin with a welcome note on it.


Install and configure PHP, Web Server and MySQL database using XAMPP/WAMP/LAMP/MAMP

7. Checking whether the XAMPP is installed properly or not.

• Open the browser,

• Type localhost on the search bar,

• If something like the following pictures shows up you are good to go.


Install and configure PHP, Web Server and MySQL database using XAMPP/WAMP/LAMP/MAMP

8. You have successfully installed and configured PHP and MySQL database using XAMPP/WAMP/LAMP/MAMP.


Hello world in php

  • Create a web page that displays “Hello World.” php
  • To create a web page that displays "Hello World" in PHP, follow these steps:
  • Open a text editor, such as Notepad, Sublime Text, or Visual Studio Code.
  • Create a new file and save it with a .php file extension, such as helloworld.php.
  • Enter the following code into the file:

PROGRAM
<?php
    echo "Hello World!";
?>

  • Save the file.
  • Upload the file to your web server.
  • Access the file in a web browser by navigating to the URL of the file, such as https://example.com/helloworld.php.
  • When you load the page in your web browser, you should see the text "Hello World!" displayed on the page.

OUTPUT

Hello World!

❤️ I Hope This Helps You Understand, Click Here To Do More Exercise In PHP Programming.

Post a Comment

0Comments
Post a Comment (0)