How can I find a PHP code to get Google's indexed quantity?

Source: Internet
Author: User
Search for a piece of PHP code to get the number of Google records. I have been searching for it online for several days and used $ curl = curl_init (); this method can be obtained but can not be saved now. if I change the obtained result to another one, it can be saved. so I don't think it is a problem with the fields in the database. this method has a problem, so I want to find another method except getting it using this method .. search for a piece of PHP code to get Google's indexed quantity
I have searched the Internet for several days and used $ curl = curl_init (); this method can be obtained but can not be saved now. if I change the obtained result to another one, it can be saved. so I don't think it is a problem with the fields in the database. this method has a problem, so I want to beg for a method other than getting it using this method...

------ Solution --------------------
It is not a problem to get the code, but a problem you store in the database. changing the code does not solve your fundamental problem.
------ Solution --------------------
I agree with the upstairs statement. if I can read it, it is just a matter of storage.
------ Solution --------------------
Discussion

This is because I want to refresh the web page on the server, but now I want to do this kind of thing and use asynchronous processing, that is, when accessing this page, let him execute other tasks in the background. A refresh method of the class. I use this method now. the refresh method under the refresh class can be directly accessed in the URL and saved, but I am executing the refresh method when asking others to access the index. refresh method I obtained a Baidu record, a Google Baidu record, and directly crawled html to find the number Google refresh ......

------ Solution --------------------
Remember: addslashes ($ html)

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.