Rank: Newbie Groups: Member
Joined: 2/26/2008 Posts: 1 Points: 3
|
I need to create a folder based on an ID to upload images to if one does not exist. Need code to modify AspSmartUpload.asp. I am using version 5.0
|
Rank: Member Groups: Member
Joined: 3/22/2008 Posts: 13 Points: -58
|
In php : Quote://Create random number $rand = mt_rand();
//Create picture's dir mkdir ("Gallery/".$rand, 0600); $galleryPath = "Gallery/".$rand."/"; $absGalleryPath = realpath($galleryPath) . "/";
//Create thumbnail's dir mkdir($galleryPath."Thumbnails", 0600); $absThumbnailsPath = realpath($galleryPath . "Thumbnails/") . "/";
|