Using PHP to determine if a remote file has been replaced?
Posted
by Rob
on Stack Overflow
See other posts from Stack Overflow
or by Rob
Published on 2010-04-27T06:10:56Z
Indexed on
2010/04/27
6:23 UTC
Read the original article
Hit count: 160
php
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.
© Stack Overflow or respective owner