As I read your question, I remembered a response from me on SOen , I believe this is the path:
The problem is that maybe you have accessed the page through the FILE protocol instead of the HTTP protocol, as already said by Gustavo and Ricardo, I will explain the differences:
Differences between HTTP and FILE
You should learn the differences between "http protocol" and "file protocol".
HTTP protocol:
HTTP functions as a request-response protocol in the client-server computing model. A web browser, for example, can be the client and an application running on a computer hosting a web site can be the server. The client sends an HTTP request message to the server. The server, which provides resources such as HTML files and other content, or perform other functions on behalf of the client, returns a response message to the client. The response contains completion status information about the request and may also contain requested content in your message body.
File Protocol:
The URI schema file is a URI schema specified in "RFC 1630" and "RFC 1738", normally used to retrieve files from within your own computer, if you open a PHP file directly the URL in the address bar will usually introduce this:
Second,yourneedtolearnabout"developer tools" with developer tools can detect "path", page headers and page responses to understand specific issues.
Using developer tools in Chrome (in some browsers that use Webkit is similar): link
Example:
UsingFirefox: link
Example:
UsingSafari8: link
ToolsthatIrecommendtoinstallPHPonyourmachine:
- link (windows, apache, php, mysql)
-
link (cross-platform, apache, php, mysql,
pearl)