I saw some one ask this so thought I would look at it.
Open Config.php
Find "define('DIR_IM'"
And replace it with the code above, what it will do is create, or try and create the folder's for the current year, month and day of the month, it will then build that into the current DIR_IM as a path.
Any new uploads will then be put in those locations.
like www.imagehost.com/images/2010/Mar/25/myimage.png
Code:
//this is my code to have images dumpped into folders based on year/month/day like 2010/4/13/image.png
$xyear = date('Y');
$xmonth = date('M');
$xday=date('d');
$xpath = "images/".$xyear."/".$xmonth."/".$xday."/";
define('DIR_IM',$xpath);
mkdir("images/".$xyear, 0700);
mkdir("images/".$xyear."/".$xmonth, 0700);
mkdir($xpath, 0700);
Open Config.php
Find "define('DIR_IM'"
And replace it with the code above, what it will do is create, or try and create the folder's for the current year, month and day of the month, it will then build that into the current DIR_IM as a path.
Any new uploads will then be put in those locations.
like www.imagehost.com/images/2010/Mar/25/myimage.png