[英]PHP5 how to add simplexml?
當我檢查我的phpinfo時 ,它顯示如下,我必須使用simplexml ,但是會得到;
“致命錯誤:在...中調用未定義的函數simplexml_load_file() ”
信息。
disable-xml''--disable-simplexml''--disable-dom''--disable-libxml''--disable-xmlreader''--disable-xmlwriter''--disable-debug'
如何啟用simplexml ?
安裝:
apt-get install php-xml
校驗:
php -m | grep xml
重新開始:
service php5-fpm restart
您必須重新編譯php源代碼並啟用所有相關的XML插件。
像這樣:
./configure --prefix=/usr/local/php --enable-xml --enable-simplexm --enable-libxml //and so on...
在ubuntu中運行此命令。
sudo apt-get install php5.6-xml
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.