Re: Creating a directory

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

 



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 '.

> } else {
>         print "Get get some coffee!";

I'm 50% sure that should be print "RTFM".

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I like your SNOOPY POSTER!!
*/

-- 
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