2012 London Olympic medal list code PHP

Source: Internet
Author: User
2012 London Olympic medal List code PHP Tutorial: http://www.tongqiong.com/read.php?tid-94.html
  1. Define (' Sina_sae ', ' 0 '); Whether to enable Sina SAE platform 1 for use 0 for non-use
  2. $ayurl = "http://2012.titan24.com/medal.html";
  3. $content =fcontents ($ayurl);
  4. Preg_match_all (' | (. *)
|isu ', $content, $table);
  • Echo '
  • Olympic medal standings-2012 London Olympic Games-the same poor forum
  • '. $table [1][0]. '
  • With the Poor forum
  • ';
  • 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;
  • }?>
  • With the poor forum www.tongqiong.com wish the Chinese delegation a good result! Copy Code
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.