Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
RCMoore  
#1 Posted : Friday, May 23, 2008 11:18:02 PM(UTC)
RCMoore

Rank: Newbie

Groups: Member
Joined: 2/26/2008(UTC)
Posts: 1

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
Juli3n  
#2 Posted : Friday, May 23, 2008 11:34:43 PM(UTC)
Juli3n

Rank: Member

Groups: Member
Joined: 3/22/2008(UTC)
Posts: 13

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/") . "/";

Users browsing this topic
Guest
Similar Topics
Create folder with fso - fail (Discussions – ActiveX/Java Uploader)
by sorenmt84 2/8/2011 2:40:32 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.