第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

未捕獲的錯誤:未找到“SimpleXMLElement”類

未捕獲的錯誤:未找到“SimpleXMLElement”類

PHP
largeQ 2023-08-19 10:18:07
SimpleXMLElement 不起作用!檢查 php -v:PHP 7.4.8 (cli) (built: Jul 13 2020 16:45:28) ( NTS )Copyright (c) The PHP GroupZend Engine v3.4.0, Copyright (c) Zend Technologieswith Zend OPcache v7.4.8, Copyright (c), by Zend Technologiesphp -m:php -m[PHP Modules]...SimpleXML..xmlxmlreaderxmlwriterxsl...我使用 PHP 7.2,安裝 php-xml、php-simplexml 等。日志:PHP Fatal error:  Uncaught Error: Class 'SimpleXMLElement' not found in /var/www/html/inc/functions.php:828php: $myCurl = curl_init();  curl_setopt_array($myCurl, array(    CURLOPT_URL => $url,    CURLOPT_RETURNTRANSFER => true,    CURLOPT_POST => true,    CURLOPT_POSTFIELDS => http_build_query(array($body))  ));  $response = curl_exec($myCurl);  curl_close($myCurl);  $robo_response = new SimpleXMLElement($response);
查看完整描述

1 回答

?
暮色呼如

TA貢獻(xiàn)1853條經(jīng)驗 獲得超9個贊

在我的 Ubuntu 上啟用了 PHP7.0。需要 PHP 7.4


sudo a2dismod php7.0

sudo a2enmod php7.4

sudo service apache2 restart

謝謝大家的幫助。


查看完整回答
反對 回復(fù) 2023-08-19
  • 1 回答
  • 0 關(guān)注
  • 174 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號