Home > Backend Development > PHP Tutorial > 【初学php】输入localhost/php文件名如何出来上载该文件的提示啊如何解决呢

【初学php】输入localhost/php文件名如何出来上载该文件的提示啊如何解决呢

WBOY
Release: 2016-06-13 13:22:40
Original
1135 people have browsed it

【初学php】输入localhost/php文件名怎么出来下载该文件的提示啊?怎么解决呢?
我是刚开始学习php,看的是php100的视频,在把apache配置好后,视频中在apache的htdocs文件中加入了一个a.php文件,随后对该php文件进行了编辑,视频中输入localhost/a.php就能显示相关文件信息,我照做的时候怎么会出现下载信息呢?
  求各位高手帮帮忙,我基础太差了~

------解决方案--------------------
AddType application/x-httpd-php .php .phtml
改成
Addtype application/x-httpd-php .php .phtml

试试

------解决方案--------------------
php没被解析!!!
------解决方案--------------------

探讨

引用:
AddType application/x-httpd-php .php .phtml
我这句有加,但是不管用~

------解决方案--------------------
前面说得很清楚了,php模块没安装成功。 一般是要在 conf/httpd.conf 文件中加一句 AddType application/x-httpd-php .php

 前提是你的php模块已经安装在电脑上了.. 严格按教程来配置一般不会有问题
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