1

I found a quirk in WampServer that cost me several hours to figure out. I thought I'd share in case anyone else was having the same difficulty:

I updated my MS Visual C++ package, installed the correct version of Wampserver, put my files in the "www" folder, etc. The server was green and running, but my PHP code would not execute.

One thing was my mistake. I thought I could use the browser to access the file, but I learned that you have to go through LocalHost to open the file.

Another was a weird quirk. Watching videos on the internet, I saw others simply go to LocalHost and click on their project in "My Projects" and their webpages came up. For me, I kept getting "File not found". Scrutinizing the address bars in the videos, I realized that when people in the video clicked, the address would read "localhost/test/test.php" (adding the name of the folder and file to the address) but for me, the address would just read "test.php" (without the localhost, etc. at the beginning) Adding it in manually, the webpage finally came up in PHP.

Hopefully this helps someone else. I don't know if I'm doing something wrong, but at least I can find my files!

(Windows 10 / x64)

user6307157
  • 23
  • 1
  • 4
  • Possible duplicate of [Project Links do not work on Wamp Server](http://stackoverflow.com/questions/23665064/project-links-do-not-work-on-wamp-server) – RiggsFolly May 09 '16 at 08:18

2 Answers2

0

I also faced this type of error every time I had to type url to run php file or project. Finally, I found it in:

  • WWW folder in wamp which is there in C drive

In that index.php file there was a problem:

  • one simple problem was on line number 335 or 338 maybe it will be just http://
  • make http:// to http://localhost/

Then it worked fine for me.

Nander Speerstra
  • 1,496
  • 6
  • 24
  • 29
0

I had the same issue. My fix was, I disabled my anti virus and then restarted All my wamp services this

Mohan Prasad
  • 682
  • 1
  • 9
  • 34