This article mainly introduces the weaving dream dedecms can not download remote http://www.php.cn/css/css-rwd-images.html "target=" _blank "> Picture implementation of the image localization solution, the need for friends to refer to the next
Dedecms template Download Address: www.php.cn/xiazai/code/dedecms
Dede The main reasons for the localization failure of pictures:
The Fsockopen () function is disabled in the running environment on the server
Solution One:
Replace with the stream_socket_client () function where Fsockopen () is used.
The specific modification place is/include/dedehttpdown.class.php line No. 507
$this->m_fp = @fsockopen ($this->m_host, $this->m_port, $errno, $ERRSTR, 10);
Replaced by
$this->m_fp = @stream_socket_client ($this->m_host. ':' . $this->m_port, $errno, $ERRSTR, 10);
Solution Two:
Edit PHP.ini, find Disable_functions, remove the fsockopen
If the above scheme can not solve, then the analysis of the php.ini configuration file allow_url_fopen is open state;