PHP - Recursive Directory New File Scan - TechRepublic
General discussion
April 21, 2009 at 09:21 PM
aspoor

PHP – Recursive Directory New File Scan

by aspoor . Updated 17 years, 2 months ago

Ok,here goes,

I have been looking through 100’s of examples using PHP’s directory interator’s, to write a file scan output to a MYSQL database and then to a new file checker. If the initial dir() interator finds a duplicate file in the database then jump to the next new file scan.

However, the meat behind my thought is to enable a function to verify 0.day. So if the scan outputs a file that is not in the MYSQL directory scan DB it posts it to a new MYSQL database and is parsed into a neat tabled HTML file for my members.

A good example of what I am trying to do is located at “http://www.mininova.org.” The main page changes on a daily basis to include the newest torrent’s.

I’d like to think of it as a zero-day new file scan. I have only seen this done in a few places. Please let me know your thoughts.

This discussion is locked

All Comments