"PHP Apache Weird Problem"
"PHP Apache Weird Problem"
Describe:
1.apache configuration file http.conf in documentroot= d:/www
2.d:/www in the index.html file, display it works in the browser. The code is as follows:
It works
。
Enter localhost in the address bar to successfully open the page.
3.d:/www in the ind.php file, the code is as follows:
echo "Welcom"?>
Enter localhost/ind.php in the address bar to open the page successfully. The page displays welcome.
4.d:/www/php (the file directory changed) in the index.php file (the content is the same as ind.php), the code is as follows:
echo "Welcome"?>
Enter localhost/php/ind.php in the address bar to prompt for error messages 404,not found.
Description of the text is a bit long, but really did not understand what is the situation, to pass a master to give a solution, humbly ~ ~
------Solution--------------------
Please check
1. If PHP is loaded successfully
2. Whether the x-application has been configured
3, PHP.ini's Short_open_tag whether open
------Solution--------------------
What is the complete error message?
------Solution--------------------
You mean
The d:/www/ind.php can be accessed with http://localhost/ind.php
and
d:/www/php/ind.php cannot be accessed with http://localhost/php/ind.php
Is that right?