[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
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
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:
>
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 '.
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;
5 matches
Mail list logo