Page 169 - CITS - Computer Software Application -TT
P. 169
COMPUTER SOFTWARE APPLICATION - CITS
PHP Version
To check your php version you can use the phpversion() function:
PHP Run First Program
In this program you will learn how to run PHP programs on XAMPP.
Write and save program
To run a PHP program, first write the PHP program in a text editor. And keep it anywhere in C:/xampp/htdocs. If
possible, you can also create a new directory. I have created a directory named test inside the htdocs folder. And
the name test.php is saved inside this directory.
Ex. C:/xampp/htdocs/test/test.php
Open XAMPP Control Panel
Now open the XAMPP Control Panel, and then start the PHP Server. If you need MYSQL then you can also start
it.
156
CITS : IT&ITES - Computer Software Application - Lesson 47 - 62