PHP to get Baidu included and Baidu snapshot time code

Source: Internet
Author: User
This article introduces, using PHP to get Baidu included, as well as Baidu snapshot time of a piece of code, there is a need for friends, make a reference bar.

PHP code to implement the query Baidu included the situation and Baidu snapshot time.

Code:

     (. *) <\/span>/"; /* String to match the snapshot date */$times = "/\d{4}-\d{1,2}-\d{1,2}/"; /* Regular expressions that match the snapshot date, such as: 2011-8-4*/$s 0 = @file_get_contents ($all); /* Place Site:www.ninthday.net's Web page into the $s0 string */$s 1 = @file_get_contents ($today); Preg_match ($utf _pattern, $s 0, $all _num); /* Match "find related results *" * * * Preg_match ($utf _pattern, $s 1, $today _num); Preg_match ($kz _pattern, $s 0, $temp); Preg_match ($times, $temp [0], $screenshot); if ($all _num[1] = = "") $all _num[1] = 0; if ($today _num[1] = = "") $today _num[1] = 0; if ($screenshot [0] = = "") $screenshot [0] = "no snapshot";? >  <title>Baidu included and Baidu snapshot time-bbs.it-home.org</title>   
     
     
Date Baidu included Baidu today included Baidu Snapshot Date

Baidu included: "target=" _blank ">

Baidu today included: "target=" _blank ">

Baidu Snapshot Date: ">

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