Thread: ImageGD
View Single Post
Old 08-19-2009, 12:13 PM   #4 (permalink)
jasonberresford
The Wanderer
 
Join Date: Aug 2009
Posts: 11
Thanks: 1
jasonberresford is on a distinguished road
Default

<?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. :)
jasonberresford is offline  
Reply With Quote
The Following User Says Thank You to jasonberresford For This Useful Post:
Tanax (08-19-2009)