PHP: Call to undefined function: simplexml_load_string()

前端 未结 7 583
名媛妹妹
名媛妹妹 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条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 23:29

    To fix this error on Centos 7:

    1. Install PHP extension:

      sudo yum install php-xml

    2. Restart your web server. In my case it's php-fpm:

      services php-fpm restart

提交回复
热议问题