1. 方法一:替换 fsockopen 函数

    • 编辑 include/dedehttpdown.class.php 文件,找到:
       
       
      $this->m_fp = @fsockopen($this->m_host, $this->m_port, $errno, $errstr, 10);

      修改为:

       
       
      $this->m_fp = @stream_socket_client($this->m_host . ':' . $this->m_port, $errno, $errstr, 10);
  2. 方法二:修改 imtypes 数组

    • 编辑 include/c.php 文件,找到:
       
       
      imtypes = array

      修改为:

       
       
      imgtypes = array