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

2012 London Olympics medal list code php

WBOY
Release: 2016-07-25 09:06:16
Original
1487 people have browsed it
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


    source:php.cn
    Previous article:Randomly add a specific string of php code anywhere in the article Next article:Intelligent humanized submission form JS special effects code
    Statement of this Website
    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
    Latest Articles by Author
    Latest Issues
    Related Topics
    More>
    Popular Recommendations
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template