Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7680753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:11:16+00:00 2026-05-31T18:11:16+00:00

This is more like a strategy question: I need to check regularly a long

  • 0

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()?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:11:18+00:00Added an answer on May 31, 2026 at 6:11 pm

    You could use cron jobs ( http://www.webmasters-central.com/article-blog/tutorials/cron-tutorial-managing-cron-tab-or-cron-job-is-easy/ )

    1. First create a table in a database that will keep track when the latest “check” has occurred for each website ( use unix time ).
    2. Figure out how many website “checks” you want each time you run the cron job ( let’s say 10 ).
    3. Create a php script that gathers the 10 oldest “checked” websites and use curl to check those websites.
    4. update the table with the current “checked” time for each website.
    5. figure out how often this php script has to run to update the whole list.
      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!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is more of a licencing issue than a code question. I really like
This is more like a good practise question. I want to offer different generic
This is more like a question of principle. I made a table with 100%
I have a label on my asp.net page, it looks like this: more info
I use C# code more-or-less like this to serialize an object to XML: XmlSerializer
I have string like this /c SomeText\MoreText Some Text\More Text\Lol SomeText I want to
Suppose I have a bulleted list like this: * list item 1 * list
This is more like a package/import test. We'll start with my base folder at
I did some HTTP monitoring with WireShark. Are there more tools like this that
I would like to extract items from this sample html, more specificly, i would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.