Re: Creating a directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <dan@xxxxxxxxxxxxxxx> wrote:
> > 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['dir']'); // but it don't work
> > } else {
> >        print "Get get some coffee!";
> > }
> > 
> > I'll be putting some error checking in later :)
> > 
> > Thanks,
> > Dan.
> > 
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> >
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux