PHP: Call to undefined function: simplexml_load_string()

前端 未结 7 582
名媛妹妹
名媛妹妹 2020-12-13 23:02

I am implementing facebook count function using cron file. In which cron runs every 10 minutes and counts the total likes of a page.

for($i=0;$i<3;$i++){
         


        
7条回答
  •  -上瘾入骨i
    2020-12-13 23:29

    I also faced this issue. My Operating system is Ubuntu 18.04 and my PHP version is PHP 7.2.

    Here's how I solved it:

    Install Simplexml on your Ubuntu Server:

    sudo apt-get install php7.2-simplexml
    

    Restart Apache Server

    sudo systemctl restart apache2
    

    That's all.

    I hope this helps

提交回复
热议问题