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

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

        <legend id='s5y5N'><style id='s5y5N'><dir id='s5y5N'><q id='s5y5N'></q></dir></style></legend>

          <bdo id='s5y5N'></bdo><ul id='s5y5N'></ul>
      1. <tfoot id='s5y5N'></tfoot>

      2. 浏览器要求我下载 php 文件

        时间:2023-09-25

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

                  <tfoot id='CKLQs'></tfoot>
                    <tbody id='CKLQs'></tbody>

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

                1. 本文介绍了浏览器要求我下载 php 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我是网络编程的新手,仍在学习新东西.

                  I am a new guy in web programming who still learning new stuff.

                  我正在创建一个包含一个 INPUT 的 Web 表单.我将 HTML 文件中的表单连接到 php 文件.我正在使用我最近在 MacBook 上安装的本地主机 MAMP.

                  I am creating a web form that consist of one INPUT. I connected the form in the HTML file to the php file. I am using a localhost MAMP that I recently installed on my MacBook.

                  问题: 当我在网页上打开 HTML 文件并在输入框中输入内容并点击提交时,浏览器要求我下载 php 文件而不是处理它.

                  The Problem : When I open the HTML file on a webpage and type something on the input box and hit submit, the browser ask me to download the php file rather processing it.

                  我认为问题与 mysql 或 apache 无关,因为当我运行 MAMP 时,它会在 apache 和 mysql 旁边给我绿色标志.

                  I don’t think the problem is related to mysql or apache since when I run the MAMP it give me green signs next to the apache and mysql.

                  有谁知道我如何解决这个问题并让 php 文件打开并将输入传输到数据库?

                  Do anyone know how I can fix this problem and the let the php file open and transfer inputs to the database?

                  推荐答案

                  您需要确保 Apache 已被告知 .php 文件应被视为 PHP 脚本.这意味着以下之一:

                  You'll want to make sure that Apache has been told that .php files should be treated as PHP scripts. That means one of the following:

                  LoadModule php5_module        modules/libphp5.so    # on windows, this'd be a .dll instead
                  AddHandler php5-script php 
                  

                  和/或

                  AddType application/x-httpd-php php
                  

                  在您的 httpd.conf 文件中.

                  in your httpd.conf file.

                  这篇关于浏览器要求我下载 php 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:通过 PHP 检查浏览器的语言? 下一篇:Web 浏览器未将 PHP 代码作为 PHP 代码处理

                  相关文章

                  最新文章

                  1. <small id='GW1Wt'></small><noframes id='GW1Wt'>

                    <legend id='GW1Wt'><style id='GW1Wt'><dir id='GW1Wt'><q id='GW1Wt'></q></dir></style></legend>
                  2. <tfoot id='GW1Wt'></tfoot>

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