Click here to Skip to main content
15,882,903 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have installed XAMPP and localhost is working..but when I give url as localhost/projectfilename it gives a blank page..?
plz help me. I tried it wamp too same problem occured.

What I have tried:

I have installed XAMPP and localhost is working..but when I give url as localhost/projectfilename it gives a blank page..?
plz help me. I tried it wamp too same problem occured.
Posted
Updated 8-Apr-22 21:43pm
Comments
Afzaal Ahmad Zeeshan 9-Apr-17 8:12am    
Perhaps it is unable to load the file, a blank page might also be showing that the resource was not found, check in the console to see what the problem is and then fix that problem.

Presumably you know that you need to create your project page in the folder <root>\xampp\htdocs, where <root> is wherever you have installed your xampp (e.g. c:\my_web_stuff\xampp\htdocs) ?

Put your index.php file into the above location and you should be ready to go. If it doesn't work I'd recommend putting a simple plain HTML file there something like this and let's assume that you save the following to the file "c:\my_web_stuff\xampp\htdocs\hello.html"

<head>
<title>My XAMPP is working</title>
</head>
<body>
<p>Hello world!</p>
</body>
</html>

You should be able to open the above in your browser at http://localhost/hello.html or at 127.0.0.0/hello.html. If that doesn't work I'd question whether your XAMPP is actually working. Go into services (I'm assuming windows) and check the the Apache service is up and running and that you aren't running into a need to enter your sign-in credentials for the service, which is sometimes the case.

The Apache error log should be checked if you're still having problems.
 
Share this answer
 
Comments
Abdul Rahman BCS 15-Apr-17 6:16am    
Thanks @afzaal and @Nick :) Fized it
I have installed XAMPP and localhost is working..but when I give url as localhost/projectfilename it gives a blank page..?
plz help me. I tried it wamp too same problem occured.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900