Domesticated Brain

Creating a basic PHP file

Before running the PHP files in your computer you have to ensure that required services are already running
To start running the required services you have to open XAMPP first

PHP Tutorials XAMPP Control Panel


Open any text editor

Create a new file and save it inside the htdocs folder with PHP extension

C:\xampp\htdocs

EX – testfile.php

Type any simple PHP code in testfile.php file

 

<?php

  echo "Hello World";

?>

 

Now you can run the testfile.php using any standard web browser

If you have found  what you expected please comment and like on our facebook page