When i check my phpinfo , it displays like below and i have to use simplexml , but getting ;
"Fatal error: Call to undefined function simplexml_load_file() in..."
message.
disable-xml' '--disable-simplexml' '--disable-dom' '--disable-libxml' '--disable-xmlreader' '--disable-xmlwriter' '--disable-debug'
How can i enable simplexml ?
Install:
apt-get install php-xml
Check:
php -m | grep xml
Restart:
service php5-fpm restart
You must recompile your php source code and enable all of the related XML plugin.
Like this:
./configure --prefix=/usr/local/php --enable-xml --enable-simplexm --enable-libxml //and so on...
在ubuntu中运行此命令。
sudo apt-get install php5.6-xml
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.