Home > Backend Development > PHP Problem > Why is the php file inaccessible?

Why is the php file inaccessible?

藏色散人
Release: 2023-03-02 11:24:02
Original
5036 people have browsed it

The PHP file cannot be accessed because it has not been parsed by the server. The solution is: first download the PHP integrated development environment tool; then select the default browser; then start "WampServer"; and finally put the PHP file into the www directory , and open the browser to access it.

Why is the php file inaccessible?

PHP is an interpreted server scripting language

The php file is a web script and cannot be accessed directly through a browser to view web pages As a result, it must be parsed by the server before it can display the HTML page

Commonly used integrated development environments are: WampServer, AppServ, XAMPP

Take WampServer as an example:

  • Search "WampServer" on Baidu, download and install. The installation process is very simple, there is nothing to pay attention to

  • After the installation is completed, you will be asked to choose the default browser. The default is IE, you can also choose other browsers

  • After setting up, start WampServer. When the icon turns green, click the icon and click the www directory

  • After putting the PHP file into the www directory

  • Open the browser and visit: http://localhost to access the php file

Recommended related downloads: "PHP Development Environment"

The above is the detailed content of Why is the php file inaccessible?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template