start with PHP
Before start PHP programming we need to install :
- Web server (Apache)
- PHP
- MySQL (for graphical user interface also need to install phpMyAdmin)
Some software can install all of above:
- WAMP(for Windows) download free from: http://www.wampserver.com
- XAMPP(for Windows, Linux and OS X) download free from: https://www.apachefriends.org
Now go to “C:\wamp(or wamp64)\www\” and for XAMPP go to “C:\xampp\htdocs\” create a text file with notepad (in Windows OS or TextEdit in Mac or gedit in Linux) and name it test.php, copy and paste below codes in it and save the file
1 2 3 4 5 6 7 8 9 |
<?php echo 'PHP successfully tested on this system.'; ?> |
To run your code(any server-side codes) you can’t open it directly with your browser; to do this in any major browsers address bar you can simply type one of these:
- localhost/test.php
- 127.0.0.1/test.php
- [::1]/test.php (using IPv6)
Then you can see in browser: PHP successfully tested on this system.
Recent Comments