Home >Backend Development >PHP Tutorial >2012 London Olympics medal list code php

2012 London Olympics medal list code php

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-25 09:06:161565browse
2012 London Olympic Games medal list code php usage tutorial: http://www.tongqiong.com/read.php?tid-94.html
  1. define('SINA_SAE', '0'); //Whether to enable SINA SAE platform 1 means use 0 means not use
  2. $ayurl="http://2012.titan24.com/medal .html";
  3. $content=fcontents($ayurl);
  4. preg_match_all('|
    (.*)
|isU',$content,$table);
  • echo '
  • < meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  • Olympic medal list-2012 London Olympics-Same Poor Forum
  • '.$table[1][0].'
  • ';
  • function fcontents($a){/ /Get content
  • if(SINA_SAE){
  • $f = new SaeFetchurl();
  • $content = $f->fetch($a);
  • if($f->errno() == 0) $r =$content;
  • else $r=$f->errmsg();
  • }else{$r=@file_get_contents($a);}
  • return $r;
  • }?>
  • Tongqiong Forum www.tongqiong .com I wish the Chinese delegation good results!
  • Copy code


    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Previous article:Randomly add a specific string of php code anywhere in the articleNext article:Randomly add a specific string of php code anywhere in the article

    Related articles

    See more