PHP small instance: capture basic information code _ PHP Tutorial

Source: Internet
Author: User
PHP small instance: captures the basic information code. The LieHuo. Net Tutorial still uses php to do something! The haze of php has always shrouded me! Haha! Don't complain about it and make it happy for me. Learn all his essence. Capture 1 Tutorial on helping customers (www.Bkjia.com)In the end, I still need to use php to do something! The haze of php has always shrouded me! Haha! Don't complain about it and make it happy for me. Learn all his essence. Crawling has always been a strong point of mine. let's look at php two years later. let's start from here. Haha!

The code is as follows (copy A section from another website and it will be improved and powerful in the future ):

Reference content is as follows:
$ Num = file_get_contents ('http: // www.bkjia.com/'); // URL section
$ Num = str_replace ("xxxx", "yyyy", $ num); // replace the generated program with the template language
Eregi ("(.*)", $ Num, $ head); // get fromToAnd put it in the $ head array.
Echo $ head [0];
?>

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

The Ghost (LieHuo. Net) tutorial will eventually use php to do something! The haze of php has always shrouded me! Haha! Don't complain about it and make it happy for me. Learn all his essence. Capture 1...

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.