A. Setting up the development environment
- Step 1: Install a PHP compatible web Server(Eg. Abyss Web Server For Windows)
- Step 2: Install PHP interpreter.
After installing the webserver type http:// localhost in the address bar the following screen will be available.
B. Writing and running the script
Take a note pad and type the code , PHP code should begin with <?php and end with ?>. Save this file in the root directory of the web server with extension .php.
Step 1
Take a notepad and type the following and save it as first.php on C:\Abyss Web Server\htdocs.
<?php
echo” My first PHP web page”;
?>
Step 2
Start the webserver if it is off
Step 3
Type as “http://localhost/first.php” in the address bar.