RE: [PHP] Creating a Directory

2005-04-12 Thread Jay Blanchard
[snip] Hello, I am using the following script to upload files to my server. Is there anyway I can create a directory (on the fly) for the new image to go, as I want people to be able to upload files with the same name. [/snip] You know that manual thingie? It's awersome! http://us3.php.net/mkdir

[PHP] Creating a Directory

2005-04-12 Thread PartyPosters
Hello, I am using the following script to upload files to my server. Is there anyway I can create a directory (on the fly) for the new image to go, as I want people to be able to upload files with the same name. Thanks $uploadDir = 'uploads/'; $uploadFile = $uploadDir . $_FILES['form_data']['n

Re: [PHP] Creating a directory

2004-11-12 Thread Danny Brow
On Fri, 2004-11-12 at 17:12 +, Jason Wong wrote: > On Friday 12 November 2004 08:54, Danny Brow wrote: > > What's the best way to create a directory with PHP, I tried using: > > > > if (array_exists('dir',$_POST)) { > > $dir_name = test123; > > I'm 99% sure you mean 'test123'. I meant $dir_n

Re: [PHP] Creating a directory

2004-11-12 Thread Danny Brow
Thanks, I should have looked that up. 4am, time for bed. Thanks again, Dan. On Fri, 2004-11-12 at 18:01 +0900, Pluance wrote: > Use mkdir in PHP Functions. > See Also: http://www.php.net/manual/en/function.mkdir.php > > On Fri, 12 Nov 2004 03:54:52 -0500, Danny Brow <[EMAIL PROTECTED]> wrote: >

Re: [PHP] Creating a directory

2004-11-12 Thread Jason Wong
On Friday 12 November 2004 08:54, Danny Brow wrote: > What's the best way to create a directory with PHP, I tried using: > > if (array_exists('dir',$_POST)) { > $dir_name = test123; I'm 99% sure you mean 'test123'. > shell_exec('mkdir $dir_name'); I'm 100% sure you meant to use " instead of '.

Re: [PHP] Creating a directory

2004-11-12 Thread Pluance
Use mkdir in PHP Functions. See Also: http://www.php.net/manual/en/function.mkdir.php On Fri, 12 Nov 2004 03:54:52 -0500, Danny Brow <[EMAIL PROTECTED]> wrote: > What's the best way to create a directory with PHP, I tried using: > > if (array_exists('dir',$_POST)) { >$dir_name = test123;

[PHP] Creating a directory

2004-11-12 Thread Danny Brow
What's the best way to create a directory with PHP, I tried using: if (array_exists('dir',$_POST)) { $dir_name = test123; shell_exec('mkdir $dir_name'); I don't want to have to declare a variable, I would like to do this all on one line. Like: shell_exec('mkdir $_POST['