I finally felt it was the right time to learn php, and now here's the thing about php, you actually need to set up a virtual server on your own machine to test your php files. So here is how to set up the server:-
- Go to http://www.apachefriends.org/en/xampp-linux.html and download the files.
- Once downloaded, extract them.
- Open up terminal and type in sudo nautilus
- Move the extracted lampp folder to /opt/
- To start the server type the following command in terminal sudo /opt/lampp/lampp start
To test your php files all you need to do is create a directory within the /opt/lampp/htdocs/ folder and place the files inside it. Now fire up the browser with /localhost/"name of folder created in htdocs"/"name of php file".php
No comments:
Post a Comment