You are here: Re: file upload to on the fly subdirectory « All PHP « IT news, forums, messages
Re: file upload to on the fly subdirectory

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация