简体   繁体   中英

Wamp Server error - php

I setup Wamp Server in D:/ Driver not C:/ Driver and i created a folder inside WWW Folder with the name of php_course and inside it i created php file named test.php and when i tried to run the php file using localhost/www/php_course/test.php

this problem appeared the problem image Should i setup Wamp in C:/ or change something in Wamp settings ?

Hello_

First, where did you installed WAMP has nothing to do with your problem :)

The error 404 that you see means that server is not able to find what you are looking for at the specified path.

localhost is referring to www folder.

Then if you want to make request to your test.php which is in php_course folder you should simply call it like this:

localhost/php_course/test.php

No need of specifying www in the path because actually localhost is referring to www folder(with default WAMP configuration).

For example if you put file test.php in www folder you will do a request to this file like this:

localhost/test.php

That's it. Have fun with WAMP :)

enter image description here Hellp enter code here[enter image description here][1]

enter image description here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM