+ 2
How to run php programs in desktop on any browser ?
please mention needed software and tricks
4 Answers
+ 5
"http://localhost/" is a special domain name that refer to your local computer (running the web server) wich is replaced with the IP url "http://127.0.0.1/" (not 127.0.1 -- two zero instead one... usually you can avoid prefix wich would be automatically addded by your browser) refering to the local machine itself ('localhost' special domain name is treated before any DNS query).
+ 3
When I'm working on stuff and don't want to put it on the production server yet, I'll test run things from my localhost computer by using WebMatrix 3. Most of the time I operate directly from my web server, but this may serve to your purposes.
+ 3
thanks netkos and josh but some people said that type 127.0.1 in url address bar and then your folder path in which your programs are there,is it true for xamp web server?
0
Wamp/ xamp are Web-sever(software solutions) that allow you to execute PHP on a desktop or laptop. Once installed place your. PHP file in the correct folder and open your browser. Then type "localhost/"relative file path from From folder containing all web docs.