Saturday, August 23, 2014

Linking PHP to server by XAMPP

Linking PHP:

1.After downloading XAMPP,you have to install it to your C drive.
2.When install it successfully,then you have to find the C:/>xampp>htdocs .
3.All PHP file will be saved on the htdocs folder.

Now follow the screenshots below:

Screenshots

Step 1:installing Xampp in c drive



Step 2:Saving file directory


Step 3:Saving my php file


Open the program editor like notepad++.Then create a new file and save it the name as your wish on the directory.The file must be a .php(dot php) file.I have saved it as panaroma.php file.

Follow the screenshots:



Screenshots





So,now after saving the file as panaroma.php,go to the browser and write localhost.

But before that you have to remember the XAMPP server was run and start or not.

on your browser you can see:

Screenshots



Next after writing localhost/panaroma.php or which you saved that file to C:/>xampp>htdocs>your saving file on your browser.

Screenshot


This will appear.Because I have saved that file by writing this program on notepad++ as the name of panaroma.php.

Screenshot




No comments: