Php beginners. when accessing. php, error 404 is prompted-php Tutorial

Source: Internet
Author: User
Php beginners. when accessing. php, the error 404 is displayed. a friend of mine bought a space. The Space description supports php scripts. I wrote. put the php file and access "domain name/. php "prompts 404 error. The page cannot be found. you can access" domain name/a.html "but you can browse the page. what is the problem? Is php not configured for the space provider?


Reply to discussion (solution)

When you access "domain name/a. php", the error 404 is displayed, that is, a. php does not exist.
If php is not supported and a. php exists, the download a. php dialog box is displayed.

When you access "domain name/a. php", the error 404 is displayed, that is, a. php does not exist.
If php is not supported and a. php exists, the download a. php dialog box is displayed.

When you access "domain name/a. php", the error 404 is displayed, that is, a. php does not exist.
If php is not supported and a. php exists, the download a. php dialog box is displayed.


But I put it in a folder at the same level as index.html. other html files at the same level can be displayed, but php is not the only one. how can this problem be solved?

Try changing the file name for php. you can use aindex. php.
Try this.
Or check whether the read permission is granted...

A. php file does not exist. check whether the. php file exists in the root directory.

A. php file does not exist. check whether the. php file exists in the root directory.


Does the root directory contain the www folder where index.html is located? I did.

You can create a subdirectory (such as test) in the www folder and put a. php in it.
Use the domain name/eest/a. php to access it.

You can create a subdirectory (such as test) in the www folder and put a. php in it.
Use the domain name/eest/a. php to access it.


Still inaccessible, error 404 prompted

Solved. it is a space problem.

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.