Forums

Welcome Guest Search | Active Topics | Members

create folder Options
RCMoore
Posted: Saturday, May 24, 2008 7:18:02 AM
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
Juli3n
Posted: Saturday, May 24, 2008 7:34:43 AM
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/") . "/";
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.