POST TIME:2021-05-24 02:49
方法一:
各種改法,各種嘗試,后來其實只要改一句代碼就可以了
可能是因為服務器上禁用了fsockopen() 函數造成的,在用fsockopen()的地方用 stream_socket_client()代替就可以了。
具體修改地方是 /include/dedehttpdown.class.php 第507行
$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);
方法二:
請修改 /include/c.php 第45行
imtypes=array改成imgtypes = array【你會發現少了個“g”】