linux php解決方案

來源:互聯網
上載者:User
linux php
linux 用auto_prepend_file後面路徑如何配置?
------解決思路----------------------
如果你打算使用絕對路徑,那就直接填上就可以
如果打算使用相對路徑,這個路徑是相對當前執行的 php 程式檔案的

------解決思路----------------------
設定 auto_prepend_file = xxxx.php
就和在你程式中寫上一句 include ‘xxxx.php'; 一樣

所以程式中怎麼寫,就怎麼寫
------解決思路----------------------
你的 include_path 的值是什嗎?
只要在他指示的範圍裡就可以

比如 預設的 include_path 是
include_path = ".:/php/includes"

auto_prepend_file = xxxx.php
那隻要把 xxxx.php 放到 /php/includes 中就可以了
注意:被啟動的程式的目錄中有 xxxx.php 的話,這個將被優先載入
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.