This is more like a strategy question:
I need to check regularly a long list of websites if they have a code installed. I can’t check all of them once. How to do it? I have PHP on my server.
Should I use cURL and regex? or file_get_contents()?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use cron jobs ( http://www.webmasters-central.com/article-blog/tutorials/cron-tutorial-managing-cron-tab-or-cron-job-is-easy/ )
Let’s say you have 100 websites and you want ALL these sites to be updated every hour.Each time the cron job runs it will check 10 websites. Then this cron-job has to run at least 10 x an hour to accomplish the job….
This will create a loop on all the websites but will limit each request.
You have to do some trial test to see how many websites you can check every time and then implement this with a cron-job…
Good luck!