PHP Small instance: Crawl basic information Code _php Tutorial

Source: Internet
Author: User
   home of the Help (www.Bkjia.com) tutorialIn the end, I'm going to use PHP to do something.!php's haze has always enveloped me! Hehe, don't complain about it, let it be used for my happiness. Learn all the essence of him. Crawl has always been my strength, two years later to see PHP, start from here. Oh!

The code is as follows (currently copy a paragraph from another site, and will be gradually perfected and powerful):

The following is the referenced content:
$num =file_get_contents (' http://www.bkjia.com/'); Web Site Section
$num =str_replace ("xxxx", "yyyy", $num); The template language is replaced with the generated program
Eregi ("(.*)", $num, $head); Get fromToBetween the characters and placed in the $head array
echo $head [0];
?>

Article from: http://www.cnblogs.com/jguangliang/

http://www.bkjia.com/PHPjc/364321.html www.bkjia.com true http://www.bkjia.com/PHPjc/364321.html techarticle Fire Net (liehuo.net) tutorial Finally, I still want to use PHP to do something ah!php haze always shrouded me! Hehe, don't complain about it, let it be used for my happiness. Learn all the essence of him. Grab a ...

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