i have downloaded xampp,installed it but when i write a php code in text document and save it with the name echo.php in htdocs folder of xampp,and when i try to run it by typing http://localhost/echo.php in my browser it didnt run.is there anything i am doing wrong or is there any special editor needed for it.please help me out.
Personally I have never run xampp. I have done my own version of WAMP, but you might want to check and make sure php is properly configured. I had the biggest struggle with getting my scripts to run and that was all because one file *libmysql.dll* wasn't in the right spot. So check the php and let us know what happens.
ya path to localhost is right and my document root is also htdocs but i dont know what the hell is going on,that error is still coming and i dont understand what is going wrong.
I have read your thread again.. Well if you are trying to build an application using xampp, create a folder under htdocs. If the folder of your application is named MyApp and under this folder is an echo.php, try running the app using http://localhost/MyApp/echo.php
the actual problem i was faciing was that when i type localhost as url, a page opens of xampp and it changes to "http://localhost/xampp".i was calling other files say echo.php by typing "http://localhost/xampp/echo.php".which is a wrong syntax.actually i have to write "http://localhost/echo.php".i was thinking i have some problem with my software but actuall problem was this and now i know what to do all of my php files are running.
ok i will look over WAMP and check which is easier since i work a bit over XAMPP and find it nice to be used.