PHP regularly gets the picture and downloads the content

time:13-03-24 forum:PHP tools and code
  Reprinted from http://enenba.com/? Post=106

[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.

prev:Yangtze River water will come to Ji'nan ... next:PHP gets all the pictures in the web pag...
post comment
Notice



approved   Reminder: Taobao's new scam, do not ...   Recruitment of job search websites i...   Ji'nan related blog collection   Nine cases of individual advisable h...   Ten big springs in Ji'nan
rand   PHP gets all the pictures in the web...   PHP regularly gets the picture and d...   PHP completely filters HTML, JS, CSS...   The UBB label turns the PHP function...   PHP implements HTML code to UBB Tags
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com