Home >Backend Development >PHP Problem >Why is the php file inaccessible?
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.
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!