PHP is a server scripting language that is mainly suitable for web page or web application development. PHP pages can also have HTML, CSS and Javascript in it. By default PHP can be write in a file with .php extension like 'filename.php'.
System Requirements for PHP Development:
(On Window OS)
The all in one solution for PHP development on window machine are : WAMP and XAMPP server stack that have web server (Apache) , PHP and database server (Mysql) in it.
You can download WAMP server from here or the XAMPP server from here.
One of the best thing with these server is that they are open source and free to use.
Tools you can use:
Notepad++ : This is a text editor that can be used to write your PHP code.
Download the Notepad++ from here.
Step to write you first PHP code:
Enjoy your first php code. Happy coding :)
System Requirements for PHP Development:
(On Window OS)
The all in one solution for PHP development on window machine are : WAMP and XAMPP server stack that have web server (Apache) , PHP and database server (Mysql) in it.
You can download WAMP server from here or the XAMPP server from here.
One of the best thing with these server is that they are open source and free to use.
Tools you can use:
Notepad++ : This is a text editor that can be used to write your PHP code.
Download the Notepad++ from here.
Step to write you first PHP code:
- Install the WAMP/XAMPP server.
- Create a new file in Notepad++ (Or any text editor you have)
- Write the below code in the file.
Code of index.php file |
- Save the file as "index.php" in the C:\wamp\www\ folder in WAMP server or C:\xampp\htdocs\ folder in XAMPP server.
- Go to web browser like Mozilla or Internet Explorer.
- Write http://localhost/index.php in the address bar.
Output of index.php file |
Enjoy your first php code. Happy coding :)
Comments