Re: Creating a directory

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

 



On Fri, 2004-11-12 at 17:12 +0000, 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_name = $_POST['dir']; This works with out the single quote.
but all my variables have single or double quotes around them.

> 
> >  shell_exec('mkdir $dir_name');
> 
> I'm 100% sure you meant to use " instead of '.

this is how I normally do this when declaring variables, but that maybe
the difference here. 

> 
> > } else {
> >         print "Get get some coffee!";
> 
> I'm 50% sure that should be print "RTFM".

RTFM > /dev/null :)


I'm 25-50% sure that this was a complete waste of a reply to a question.


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