Home > Backend Development > PHP Tutorial > mac环境下安装mamp,PHP文件不能解析。

mac环境下安装mamp,PHP文件不能解析。

WBOY
Release: 2016-06-06 20:25:40
Original
1630 people have browsed it

mac环境下安装mamp后,点击start server后,open webstart page能够成功显示已经安装了PHP5.6。
之后,讲demo.php文件放入mamp/htdocs文件夹下,
将demo.php文件拖入浏览器地址栏时,浏览器显示空白。

回复内容:

mac环境下安装mamp后,点击start server后,open webstart page能够成功显示已经安装了PHP5.6。
之后,讲demo.php文件放入mamp/htdocs文件夹下,
将demo.php文件拖入浏览器地址栏时,浏览器显示空白。

<code>将demo.php文件拖入浏览器地址栏时,浏览器显示空白</code>
Copy after login

....
你拖到地址栏,地址栏不应该是file://localhost/Users/...../demo.php?
这个只会用浏览器打开文件,显示空白只可能 demo.php 是空白.
先确保 demo.php 有内容, 然后访问 localhost/demo.php 试试.

难道是权限问题?手工创建一个php文件试一试

Related labels:
php
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