php-include

    8熱度

    3回答

    這可能只是一個非常愚蠢的問題,但我真的很沮喪,這不工作。 我有一個主文件(home.php)其中包含<? include ("/production/fetch_order.php"); ?>。正如我可以看到我試圖從home.php訪問文件。該文件命名爲fetch_order.php,位於生產文件夾中。我的路徑是正確的,拼寫也是絕對正確的。但是我結束了這個錯誤: Warning: include(

    0熱度

    1回答

    我在本地製作網站。 我的路徑看起來像這樣在我的網站:(我知道的都寫在一個骯髒的方式...) 在PHP : include 'C:\wamp\www\horticole/inventaire/pages-parts/listing/next-page-module.php'; 在HTML: background:url(http://localhost/horticole/images/head

    2熱度

    1回答

    在我的CodeIgniter應用程序中有一個共同的頁眉和頁腳視圖,這些視圖包含在不同的視圖中。我header_view很簡單,只要: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title><?php

    1熱度

    2回答

    我比較新的PHP OOP,似乎無法通過控制器調用PHP類中的函數。我目前的設置是: 的index.php class.Class1.php functions.controller.php 的script.js 在的index.php我包括class.Class1.php,創建一個新的Class對象並使用它的幾個方法來輸出一些HTML。我想使用script.js(通過使用鏈接的onclick屬性調

    1熱度

    3回答

    我正在嘗試創建一個OpenCart 1.5.1.3模塊。我遇到的問題是包含一個自定義的PHP腳本。 當我這樣做的控制器: include('module/simple_html_dom.php'); 或 include('simple_html_dom.php'); 我出現以下錯誤: Notice: Error: Could not load language module/simple_

    0熱度

    2回答

    我有這樣的腳本: file_put_contents("filters.php", '<? $filter_arr = '.var_export($filter_arr, true).'; ?>'); include("filters.php"); 或: $xml = '<?xml version="1.0" encoding="UTF-8"?>'."\n<xml>\n\t<items>\n

    3熱度

    2回答

    我有一個文件Profile.php其中包括Profile_Control.php和profile_control包括Profile_Model.php。每件事情都很好,直到這裏。 我有另一個腳本名爲Upload.php從中上傳數據。這upload.php的還包括Profile_Control.php,正如你知道Profile_Control包括Profile_Model.php。現在我不知道它爲什