On the Linux server, the Fsockopen () function is ruthlessly disabled (this is actually for security reasons, understandable), the ability to download remote pictures is no way to use. After finding some information, the solution is to replace the Fsockopen () function with the stream_socket_client () function. The specific method is as follows:
Open the dedehttpdown.class.php file in/include/and find the following code:
$this->m_fp = @fsockopen($this$this$errno$errstr, 10);
Replace with:
$this stream_socket_client ("". $this->m_host. ":". $this $errno $errstr, 10);
Save, then upload, and you can.
The collection of Atlas also needs to be changed, the location of the change is:
Open the dedecollection.func.php file in/include/and find the following code:
$m _FP Fsockopen ($ghost$errno$errstr, 10);
Change to the following:
$m _FP stream_socket_client ("". $ghost $errno $errstr, 10);
Find:
$m _FP Fsockopen ($ghost$errno$errstrdie ($ghost. ') <br/> ');
Change to the following code:
$m _FP stream_socket_client ("". $ghost $errno $errstr die ($ghost. ' <br/> ');
Can.
Weaving dream dedecms Unable to download remote pictures workaround for fsockopen function disabled