08-19-2009, 12:13 PM
|
#4 (permalink)
|
|
The Wanderer
Join Date: Aug 2009
Posts: 11
Thanks: 1
|
<?php
$file = 'image.jpg';
$filemd5 = md5_file($file);
When inserting the image, insert with the md5 .. when a new image is inserted check the database for the existing md5.. if it's not there .. insert, if it is .. don't. :)
|
|
|
|