Home >Backend Development >PHP Tutorial > 打开php文件直接上载了

打开php文件直接上载了

WBOY
WBOYOriginal
2016-06-13 13:15:18928browse

打开php文件直接下载了
初学PHP,写了很简单的代码,可是浏览器打开时把PHP文件直接下载了,估计是apache环境有问题,该怎么搞大家帮忙看下

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->

    
Name:

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->

    
        ';
            echo 'isempty($name)'.empty($name).'
'; echo 'isset($null)'.isset($isnull).'
'; echo 'isempty($null)'.empty($isnull).'
'; ?>


------解决方案--------------------
http://www.apachefriends.org/zh_cn/xampp-linux.html
Statement:
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