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

        <tfoot id='MEn14'></tfoot>

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

        php 评估后的 PHP file_get_contents

        时间:2023-09-24
        <legend id='EVvsu'><style id='EVvsu'><dir id='EVvsu'><q id='EVvsu'></q></dir></style></legend>
          <tfoot id='EVvsu'></tfoot>

              <tbody id='EVvsu'></tbody>

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

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

                  问题描述

                  我知道如何使用 file_get_contents 和 fopen 等,但是当我对我自己的一个文件执行此操作时,我得到了文字字符串,意思是,代码没有经过预处理!如何在不使用 require 等的情况下从文件中导入文本,因为我想将值存储到字符串中

                  I know how to use file_get_contents and fopen etc, but when I do it to one of my own file, I get the literal string, meaning, the code is not preprocessed! How can i import text from a file without using require etc. because I want to store the value into a string

                  推荐答案

                  参见 手册.直接从那里取的:

                  See examples #5 and #6 on the manual. Taken straight from there:

                  $string = get_include_contents('somefile.php');
                  
                  function get_include_contents($filename) {
                      if (is_file($filename)) {
                          ob_start();
                          include $filename;
                          $contents = ob_get_contents();
                          ob_end_clean();
                          return $contents;
                      }
                      return false;
                  }
                  

                  这篇关于php 评估后的 PHP file_get_contents的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:SimplePie 可以从提要中抓取图像吗 下一篇:在 PHP 函数中从推文中检索所有主题标签

                  相关文章

                  最新文章

                  • <bdo id='ka4Uz'></bdo><ul id='ka4Uz'></ul>

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

                  <legend id='ka4Uz'><style id='ka4Uz'><dir id='ka4Uz'><q id='ka4Uz'></q></dir></style></legend>
                  <tfoot id='ka4Uz'></tfoot>

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