<i id='KRs8Z'><tr id='KRs8Z'><dt id='KRs8Z'><q id='KRs8Z'><span id='KRs8Z'><b id='KRs8Z'><form id='KRs8Z'><ins id='KRs8Z'></ins><ul id='KRs8Z'></ul><sub id='KRs8Z'></sub></form><legend id='KRs8Z'></legend><bdo id='KRs8Z'><pre id='KRs8Z'><center id='KRs8Z'></center></pre></bdo></b><th id='KRs8Z'></th></span></q></dt></tr></i><div id='KRs8Z'><tfoot id='KRs8Z'></tfoot><dl id='KRs8Z'><fieldset id='KRs8Z'></fieldset></dl></div>
        <bdo id='KRs8Z'></bdo><ul id='KRs8Z'></ul>

      <small id='KRs8Z'></small><noframes id='KRs8Z'>

        <legend id='KRs8Z'><style id='KRs8Z'><dir id='KRs8Z'><q id='KRs8Z'></q></dir></style></legend>
      1. <tfoot id='KRs8Z'></tfoot>

        扩展 PHP5 在 XAMPP 中不解析

        Extension PHP5 does not parse in XAMPP(扩展 PHP5 在 XAMPP 中不解析)

            <small id='rUIFG'></small><noframes id='rUIFG'>

            <tfoot id='rUIFG'></tfoot>
            <legend id='rUIFG'><style id='rUIFG'><dir id='rUIFG'><q id='rUIFG'></q></dir></style></legend>
            <i id='rUIFG'><tr id='rUIFG'><dt id='rUIFG'><q id='rUIFG'><span id='rUIFG'><b id='rUIFG'><form id='rUIFG'><ins id='rUIFG'></ins><ul id='rUIFG'></ul><sub id='rUIFG'></sub></form><legend id='rUIFG'></legend><bdo id='rUIFG'><pre id='rUIFG'><center id='rUIFG'></center></pre></bdo></b><th id='rUIFG'></th></span></q></dt></tr></i><div id='rUIFG'><tfoot id='rUIFG'></tfoot><dl id='rUIFG'><fieldset id='rUIFG'></fieldset></dl></div>
                • <bdo id='rUIFG'></bdo><ul id='rUIFG'></ul>

                    <tbody id='rUIFG'></tbody>

                  本文介绍了扩展 PHP5 在 XAMPP 中不解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我已经安装了 XAMPP Apache 服务器并将我的网站放入 htdocs.我已经启动了 Apache 服务器.在我的网站上,我有扩展名为 PHP 和扩展名为 PHP5 的文件.不同之处在于,当我在浏览器中输入 localhost/file.php 时,我看到了一个已解析的网站.

                  I've installed XAMPP Apache server and put my website into htdocs. I've started Apache server. On my website I've got files with extension PHP and with extension PHP5.The difference is that when I type in into browser localhost/file.php - I see a parsed website.

                  但是当我输入 localhost/file.php5(我在服务器上有这个文件)时,浏览器会询问我是否要下载或打开这个文件.如果我选择打开,我会看到 file.php5 的 PHP 代码!

                  But when I type localhost/file.php5 (i have this file on server), than browser asks me if I want to download or open this file. And if I choose open than I see PHP code of file.php5!

                  我已经查看了配置,所以:

                  I've looked into configuration, so:

                  1. 我没有 htaccess 文件
                  2. PHPINFO() 显示 PHP 5
                  3. c:xamppapacheconfextrahttpd-xampp 包含在配置中,并且在开头有这个:

                  1. I dont have htaccess file
                  2. PHPINFO() shows PHP 5
                  3. c:xamppapacheconfextrahttpd-xampp is included into configuration and has this on the beginning:

                  AddType application/x-httpd-php-source .phps

                  AddType application/x-httpd-php-source .phps

                  AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml .phpt

                  AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml .phpt

                  我也尝试过:

                  AddHandler php5-script .php5
                  AddType text/html .php5
                  

                  进入 httpd.conf,但它对我不起作用(没有变化).

                  Into httpd.conf, but it does not work for me (no changes).

                  你能帮我修一下吗?我想用 php5 解析器打开 php5 和 php 扩展文件.

                  Could you please help me fixing it? I would like to have php5 and php extension files to be opened with php5 parser.

                  推荐答案

                  XAMPP 默认将具有以下扩展名的文件传递给 PHP: .php .php5 .php4 .php3 .phtml .phpt (this使用 XAMPP Lite 1.6.8 进行了测试).

                  XAMPP passes by default files with the following extensions to PHP: .php .php5 .php4 .php3 .phtml .phpt (this was tested with XAMPP Lite 1.6.8).

                  我的建议是从 XAMPP 配置中删除AddType text/html .php5"行.或者,使用全新安装的 XAMPP 并查看差异(使用 WinMerge 之类的东西).

                  My suggestion would be to remove the "AddType text/html .php5" line from the XAMPP configuration. Alternatively, use a clean install of XAMPP and look at the differences (with something like WinMerge).

                  这篇关于扩展 PHP5 在 XAMPP 中不解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                • <tfoot id='eYC5r'></tfoot>

                        <bdo id='eYC5r'></bdo><ul id='eYC5r'></ul>
                        • <legend id='eYC5r'><style id='eYC5r'><dir id='eYC5r'><q id='eYC5r'></q></dir></style></legend>
                            <tbody id='eYC5r'></tbody>

                            <small id='eYC5r'></small><noframes id='eYC5r'>

                            <i id='eYC5r'><tr id='eYC5r'><dt id='eYC5r'><q id='eYC5r'><span id='eYC5r'><b id='eYC5r'><form id='eYC5r'><ins id='eYC5r'></ins><ul id='eYC5r'></ul><sub id='eYC5r'></sub></form><legend id='eYC5r'></legend><bdo id='eYC5r'><pre id='eYC5r'><center id='eYC5r'></center></pre></bdo></b><th id='eYC5r'></th></span></q></dt></tr></i><div id='eYC5r'><tfoot id='eYC5r'></tfoot><dl id='eYC5r'><fieldset id='eYC5r'></fieldset></dl></div>