How to run PHP files on localhost?
October 30, 2008 by: Ranjith1. First download the xampp from http://www.apachefriends.org/en/xampp.html
2. Extract the file and double click the exe. This will install Mysql and Apache servers.
3. Once the installation is complete, you will find XAMPP under Start / Programs / XAMPP. You can use the XAMPP Control Panel to start/stop all servers. Start Mysql and Apache servers.
4. Write a test.php file and copy it in to C:/Program Files/XAMPP/htdocs/
5. To run the php file, you just need to brows http://localhost/test.php
Note: You can also create any folder inside htdocs and past test.php inside the folder. If you create a folder called test then the address will become http://localhost/test/test.php


Bro i installed wamp & iis with php designer both of them didnot work so i search on google and i find ure article i m really thankfull for ure efforts and hardwork work Ranjith Keep it up dude,,,,
Thank you Ranjith
it solved my problem
very well tutor about running files on xampp and wamp
Simple and Nice Tutorial
Plese send me ho to run php file in localhost
I Don’t konw how to setting in localhost
But this file i create and save in www folder and run with localhost in interbet explorer i get a error file not found plese send me detials
I have php designer, wamp server, iis. But could not able to open the php file in browser. The file couldnt run. how to run php file.
Plz send me the exact soln and Correct procidure to follow.
it works perfectly…
realy a good one thanks
it’s so nice.
its a nice suggestion but i installed wamp server … but it needs start first to execute the progarm ….. is this necessary for all server or it necessary only for wamp server
Thanks for sharing. Can we install Xampp in D drive..as i dont have much space to store my PHP project files in my C drive.
How can i run mysql, please explain with an example
Thanks
sir ,i am doing a college project in which i have to create a image gallery where different user can share the images and also music …so do what other tools do i need apart from xampp to make both front end and back end(database)
thanks for this short & easy tutorial
i got what i was looking for
Thank u so much Ranjith, for explaining very simple way to install and run PHP. Cheers and Keep it up.
Thanx for advise.
It works.
A good wish to you……………………
BINGOOOO !!!!… i love u man .. i have been searching to run php for hours.. and thanks God i came across your article .. so simple and brilliant..
i wish u best of luck in every walk of life
I’m doing my fourth project so i wants to know how to run php… waiting for the reply…
thanks….
hi i was installed xampp in my windios but when i open my local host it opens the oracle http server so what i can do…………………………plz help me
thanx it really is very simple
I has been installed apche and control panel show me that apche has been installed in local host open scussessfully but my php file in htdocs are still show me as text file even i has been given a name extension in php. what i can now do.
Remarkable facts pertaining to upload files for having myself personally begin. I am going to keep this specific website link and revisit it.
Extraordinary information with regard to upload files for having myself personally get going. Most definitely i’ll keep this specific website link and get back to this.
Dear Sir
I have folloed as what you said, But my php file could not execut.
plz suggest me
hi i had installed xampp but in that xampp apache is not working properly is there any way that i install apache individually and can run php file
when i try to run php file with localhost, it doesn’t run
appear:Internet Explorer can’t display this web page”
please, any one suggest to me what can i do as quickly as you can
Thanks,
This method works. Thanks.
For you guys who are confused, you have to run it through the cmd.exe.
If not, during installation, make sure you create a shortcut on Desktop.
bro this is not working i m trying same thing to las t 30 min, but didnot get +ve result, do u have any other ans for the same.
Thanx
Thanks Really a good work!!!!!
Thank’s a lot….
hey thaks for ur info but i have a problem with my xampp. i can test my all php script but i can test my mail script on xampp. it display a warnning message “Warning: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() ” hwo can i fix this? when i check the same script on my remote server thats work but on xampp the same script dosent work. what is smtp and smtp port how can i verify that?
do u have any idea?
4cFFm6 http://gdjI3b7VaWpU1m0dGpvjRrcu9Fk.com
Obrigado Ranjith pois mesmo essa informação ter sido escrita tanto tempo ela foi de muita utilidade…muito obrigado.
Thanks Ranjith because even this information has been written so long she was very helpful … thanks.
sir apache server is not working well
it is not going to start its still stoped
wht reason i do not know
hi
ghulam nabi.you need to first close skype..then open xamp .it will surely work..
A lot more webmasters like this website, amazing put up always keep up the superior do the job. Concerning saved yuor web blog.
i installed xampp and started appachi service.but when i run my file , following errors are occured.
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
8/23/2011 7:50:49 PM
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
It’s really a nice and helpful piece of information. I am satisfied that you just shared this helpful info with us. Please stay us informed like this. Thank you for sharing.
Thank you!!!!!!!!! I have spent days sifting through really complicated online tutorials and I still couldn’t figure this out. Then I found this and it’s so simple and it works!!!!!
When i run php file i got error as following :
Apache/2.2.14 (Win32) DAV/2 mod_autoindex_color PHP/5.3.1 Server at localhost Port 80
when i run php file i got error as following :
Apache/2.2.14 (Win32) DAV/2 mod_autoindex_color PHP/5.3.1 Server at localhost Port 80
Monika change ur wanp server version.
Superb explanations, thank you for your sharing this content.
information | i am happy to find it thanks for sharing it here. Nice work.|Was an interesting article, thank you..|Thank for this great post, i like what you
#
i installed xampp and started appachi service.but when i run my file , following errors are occured.
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
8/23/2011 7:50:49 PM
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
#
Found this tutorial Installing Xampp and Run PHP Codes on Windows
http://planetghost.com/run_php_code
hi, i am interested in link address with you….
my blog address nsmsolutions.blogspot.com
hi, i’m new to php and i dono how to execute the php files and how to extract data from excel sheet using php. help me
nice it’s easy to learn