Using wamp cannot access php files in www

Source: Internet
Author: User
Using wamp, you cannot access the php file in www and write a php file into the www folder. This PHP file is not displayed in the Your Projects column of http: // localhost: 8088, you can only directly access http: // localhost: 8088/index. php to run this php. what is the problem?


Reply to discussion (solution)

Are you sure you have this line?

DirectoryIndex index.html index.htm index. php index. php3

Write a php file and put it into the www folder. the php file is not displayed in the Your Projects column of http: // localhost: 8088/. you can only directly access http: // localhost: 8088/index. php to run this php. what is the problem?


This sentence exists in httpd. conf.

This PHP file is not displayed in the Your Projects column of http: // localhost: 8088 /.

Check whether the file name is correct.

Your Projects only displays the Directory, because wamp treats the directory as a project.
The file is not displayed here, but the file can be seen when you open the folder.

Only directories are displayed by default.
To display files, you can slightly modify the source code.
Just a page file, which is very simple.

Your Projects only displays directories. In fact, it is not very useful to use this page. you can see that the directory has this file.

An error occurs when you enter http: // localhost/test. php in the address bar of the browser for a file stored in www, such as test. php. why?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.