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

  • SEARCH
  • Home
  • 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 757045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:19:00+00:00 2026-05-14T15:19:00+00:00

I have a MySQL database with some URLs in it. One URL per row.

  • 0

I have a MySQL database with some URLs in it. One URL per row. Each URL has my script on it. What I am wanting to do, is check if the file is still there via a PHP script. Not check if it 404’d, but rather check if it has been modified or replaced. Is this possible? If so, how would it be accomplished?

I was thinking making the remote file echo some string, and having the local file check the page for that string, but that seems a little inefficient and sloppy.

EDIT: The remote files don’t output any data to the remote users, they trigger internal scripts, so remote users would only see a white page. (The checking script would only see this as well)

  • 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-14T15:19:00+00:00Added an answer on May 14, 2026 at 3:19 pm

    Bulletproof Way

    1. Fetch the URL contents.
    2. Compute the MD5() or SHA1() hash.
    3. Fetch the URL again and check if the hash has changed.

    There are other ways (such as the Last-Modified HTTP header), but they don’t work with all servers.

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

Sidebar

Related Questions

I have some flags I store in my mysql database so I can dynamically
I have a 'price' variable that contains some integer number from a MySQL database.
I have a MySql database with some sports results in it. I want to
I have some MySQL database server information that needs to be shared between a
I ran into an interesting problem. I have a MySQL database that contains some
i have the following code that generate some images with urls associated from database:
I have a mysql database and some php that allows you to create an
I have a mySQL database from where I fetch some data via PHP. This
I have to make some database requests with PHP on a MySQL database. Question
I have a MySql database with just over 30 Million rows, but some of

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.