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

  • <legend id='qGt93'><style id='qGt93'><dir id='qGt93'><q id='qGt93'></q></dir></style></legend>
  • <tfoot id='qGt93'></tfoot>

        <bdo id='qGt93'></bdo><ul id='qGt93'></ul>

      1. PHP - 将变量放入 url 时,include() 文件不起作用?

        PHP - include() file not working when variables are put in url?(PHP - 将变量放入 url 时,include() 文件不起作用?)
      2. <i id='5pEZv'><tr id='5pEZv'><dt id='5pEZv'><q id='5pEZv'><span id='5pEZv'><b id='5pEZv'><form id='5pEZv'><ins id='5pEZv'></ins><ul id='5pEZv'></ul><sub id='5pEZv'></sub></form><legend id='5pEZv'></legend><bdo id='5pEZv'><pre id='5pEZv'><center id='5pEZv'></center></pre></bdo></b><th id='5pEZv'></th></span></q></dt></tr></i><div id='5pEZv'><tfoot id='5pEZv'></tfoot><dl id='5pEZv'><fieldset id='5pEZv'></fieldset></dl></div>

        <small id='5pEZv'></small><noframes id='5pEZv'>

        • <legend id='5pEZv'><style id='5pEZv'><dir id='5pEZv'><q id='5pEZv'></q></dir></style></legend>
          <tfoot id='5pEZv'></tfoot>

                <tbody id='5pEZv'></tbody>
                <bdo id='5pEZv'></bdo><ul id='5pEZv'></ul>

                  本文介绍了PHP - 将变量放入 url 时,include() 文件不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 PHP 中,我构建了一个使用 include() 加载网站部分的网页.但是,我现在遇到了类似的问题:当我使用如下网址时:data-openov-storingen.php?type=actueel它给了我这个错误:

                  In PHP I've build a webpage that uses include() for loading parts of the website. However, I now ran into something like a problem: When I use an url like: data-openov-storingen.php?type=actueel It gives me this error:

                  Warning: include(data-storingen.php?type=actueel): failed to open stream: No such file or directory in blablabla
                  

                  是否可以在 include() url 中传递 get 变量?

                  Is it even possible to pass get variables in an include() url?

                  推荐答案

                  include() 函数不通过 HTTP 访问文件,它通过操作系统自己的文件系统访问文件.所以 GET 变量不计算在内.(因为它们不是文件名的一部分).

                  The include() function does not access the file via HTTP, it accesses the file through the OS's own file system. So GET variables are not counted. (as they are not part of the file name).

                  通俗地说,include 的目的是将一个文件上的所有内容复制/粘贴"到另一个文件上,这样您就不会拥有一个巨大的文件,而是一些更小、更易于维护的文件.

                  In layman's terms, the point of include is to "copy/paste" all the contents on one file to another on the file, so that you don't have one gigantic file, but a few smaller, more maintainable ones.

                  这篇关于PHP - 将变量放入 url 时,include() 文件不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 Require and Include GET(PHP 需要并包含 GET)
                    <tbody id='WnCoz'></tbody>
                1. <i id='WnCoz'><tr id='WnCoz'><dt id='WnCoz'><q id='WnCoz'><span id='WnCoz'><b id='WnCoz'><form id='WnCoz'><ins id='WnCoz'></ins><ul id='WnCoz'></ul><sub id='WnCoz'></sub></form><legend id='WnCoz'></legend><bdo id='WnCoz'><pre id='WnCoz'><center id='WnCoz'></center></pre></bdo></b><th id='WnCoz'></th></span></q></dt></tr></i><div id='WnCoz'><tfoot id='WnCoz'></tfoot><dl id='WnCoz'><fieldset id='WnCoz'></fieldset></dl></div>

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

                      1. <tfoot id='WnCoz'></tfoot>

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