Home > Backend Development > PHP Tutorial > php无法解析的有关问题

php无法解析的有关问题

WBOY
Release: 2016-06-13 13:20:35
Original
1050 people have browsed it

php无法解析的问题

php无法解析的问题
1.php解析的php文件路径要写对
  #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
  #指定php.ini 的存放目录
  PHPIniDir "C:/Program Files/PHP/"
  #载入php的模组
  LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
  #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
 2.文件解析的格式
   在<IfModule mime_module>标签中
    #				      
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    #及指明文件名是.php .phtml .inc .php3的文件都当成php程序解析,其余一般当成网页
    AddType application/x-httpd-php .php .phtml .inc .php3
    #指明文件名是.phps时,把内容当成hightlight的原始码输出到网页。
    AddType application/x-httpd-php-source .phps .phpsource

3.还有一个问题,就是php目录好像一定要在C:/Program Files/下哦
Copy after login

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