1. <legend id='XLkXm'><style id='XLkXm'><dir id='XLkXm'><q id='XLkXm'></q></dir></style></legend>
  2. <small id='XLkXm'></small><noframes id='XLkXm'>

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

      PHP 需要并包含 GET

      时间:2023-10-13
        • <bdo id='YXzAN'></bdo><ul id='YXzAN'></ul>
              <tbody id='YXzAN'></tbody>
          1. <tfoot id='YXzAN'></tfoot>
            <legend id='YXzAN'><style id='YXzAN'><dir id='YXzAN'><q id='YXzAN'></q></dir></style></legend>

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

              1. <i id='YXzAN'><tr id='YXzAN'><dt id='YXzAN'><q id='YXzAN'><span id='YXzAN'><b id='YXzAN'><form id='YXzAN'><ins id='YXzAN'></ins><ul id='YXzAN'></ul><sub id='YXzAN'></sub></form><legend id='YXzAN'></legend><bdo id='YXzAN'><pre id='YXzAN'><center id='YXzAN'></center></pre></bdo></b><th id='YXzAN'></th></span></q></dt></tr></i><div id='YXzAN'><tfoot id='YXzAN'></tfoot><dl id='YXzAN'><fieldset id='YXzAN'></fieldset></dl></div>
                本文介绍了PHP 需要并包含 GET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想要一个文件,但也通过 url 传递 GET 变量,但是当我写:

                I would like to require a file but also pass GET variables through the url, but when I write:

                <?php
                   require_once("myfile.php?name=savagewood");
                ?>
                

                我收到一个致命错误.我将如何以不同的方式完成此功能,以免出现致命错误?

                I get a fatal error. How would I accomplish this functionality in a different way, such that I don't get a fatal error?

                推荐答案

                变量将正常可用,您不必像这样传递.

                variables will be available as normal you do not have to pass like this.

                $name='savagewood';
                require_once("myfile.php");
                

                $name 将在 myfile.php

                这篇关于PHP 需要并包含 GET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:在 PHP 中获取和删除数组的第一个元素 下一篇:PHP - 将变量放入 url 时,include() 文件不起作用?

                相关文章

                <legend id='547kz'><style id='547kz'><dir id='547kz'><q id='547kz'></q></dir></style></legend>
                  <bdo id='547kz'></bdo><ul id='547kz'></ul>

                1. <tfoot id='547kz'></tfoot>

                    <small id='547kz'></small><noframes id='547kz'>

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