PHP regularly gets the picture and downloads the content
[code].#91; code.#93; content content content content content.Lt; img src=.quot; http://http://img.baidu.com/img/logo-zhidao.gif.quot; /.gt; content content content content content.#91; /code.#93; The address is remotely saving the locality, then replacing the saved local address to the remote address of the upper content.
[code].lt;? Php
html
$FileContent = 'content content content content content content.Lt; img src=.quot; http://img.baidu.com/img/logo-zhidao.gif.quot; /.gt; content content content content content'; Lt; img \w*src=.quot; (http:\/\/.*? (.Jpg|.png|.gif)).Quot; \w*\/?.gt; /is', $FileContent, $imagesURLArray, PREG_SET_ORDER) GesURL) {
file_put_contents (basename ($imagesURL.#91; 1.#93;), file_get_contents ($imagesURL.#91; 1.#93;));
$FileContent = str_replace.