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.