Hi, First of all I’d like to say welcome you all to my site.. This is my first post. . The reason that I decided to write this post, recently I came across some difficulties when I try to run PHP scripts on a computer that I haven’t administrative privileges to install any software. Anyway I think I will help you too..
First of all you need to download XAMPP for windows as 7zip archive from Apache Friends.
here is the link : http://www.apachefriends.org/en/xampp-windows.html
Welcome to Xampp with PHP!
To have php programming with this portable version of XAMPP extract 7zip archive into a flash drive( pen drive )
1)first open your pen drive
2)open xampp folder
4)then automatically command prompt open & wait until it says “press any key to continue…….”
5)But if run this on second time any other computer the message will be said “Refresh previous installation press 1 “then press 1 and then it will be said “press any key to continue…….”
5)now open xampp-control.exe
6)then tic the Apache service and “Start” it..
7)then tic the Mysql server and “Start” it…
8)now you are ready to go with that..
9)type this url on a web browser http://localhost/ or http://127.0.0.1/ in here you can find the XAMPP welcome & configuration page.
10)now find the folder named “htdocs”.. this is the place where you put your php files for testing..
11)to run your php type the .php after http://localhost/
12)if the test file is test.PHP the url should be http://localhost/test.PHP
//test.PHP (A simple test.php script)
echo “Hello World, this is test php page!”;
If you have any idea and comments feel free to comment them. It will help me to improve my blog. See you in next post with “How to install XAMPP on Linux (Ubuntu 11.04)“.
Gihan Malan De Silva.