|
Posted by Ehsan on 04/25/06 09:25
Hi,
You will have to use mkdir() function to create a directory under
uploads with the userid. After the if...condition in upload.php you can
use the following code to create the directory:
$uploadDirName = $_GET['userid'];
$moveToDir_ = $moveToDir . "/". $uploadDirName;
if (!is_dir($moveToDir))
{
mkdir($moveToDir, 0775);
}
$moveToDir = $moveToDir_;
Hope this helps.
Thanks and God Bless!!
Ehsan
http://ehsan.bdwebwork.com
Navigation:
[Reply to this message]
|