Using PHP to determine if a remote file has been replaced?
- by Rob
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.