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

      PHP Require and Include GET(PHP 需要并包含 GET)
        • <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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Appending GET parameters to URL from lt;formgt; action(将 GET 参数附加到来自 lt;formgt; 的 URL行动)
                Forcing quot;Save Asquot; dialog via jQuery GET(强制“另存为通过 jQuery GET 对话框)
                PHP - get certain word from string(PHP - 从字符串中获取某个单词)
                How to debug a get request in php using curl(如何使用 curl 在 php 中调试 get 请求)
                get a # from a url in php(从 php 中的 url 获取 #)
                PHP - include() file not working when variables are put in url?(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'>

                            <tbody id='547kz'></tbody>
                          <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>