How to bring consistency to the data while storing binary data in the file system and its reference in the database?
Is there any database design technique/pattern or any PHP library to help me on bringing consistency to the data with database and file system collaborated architecture used for data storing?
I mean database must be aware of any changes to the data in file system so how to deny changes without the database awareness?
Note: I am using PHP and MySQL with Apache2