2015-02-23 73 views
0

安裝假期API如何安裝從GitHub假期API: https://github.com/joshtronic/holidayapi.com如何從GitHub

我現在的系統設置是: Win 7的 wamp2.2 PHP5.3

錯誤顯示:

Warning: require_once(pickles.php) [function.require-once]: failed to open stream: No such file or directory in D:\wamp\www\holidayapi\public\index.php on line 5

Fatal error: require_once() [function.require]: Failed opening required 'pickles.php' (include_path='.;D:\wamp\bin\php\php5.3.9\pear;/usr/share/pickles-dev/src') in D:\wamp\www\holidayapi\public\index.php on line 5

回答

0

它希望找到一個名爲 「泡菜」 在/ usr /共享/泡菜-dev的

set_include_path(get_include_path() . PATH_SEPARATOR . '/usr/share/pickles-dev/src'); 

require_once 'pickles.php'; 
+0

呀,我在哪裏可以得到它? – Monnster 2015-02-23 11:55:54

+0

最好的辦法是要求這個API項目背後的人員記錄它的依賴關係。但它很可能是https://github.com/joshtronic/pickles PHP MVC框架 – 2015-02-23 12:09:46

+0

感謝戴夫,我也嘗試過,但pickles.php不包含在該源代碼中。 – Monnster 2015-02-23 12:20:06