Re: Creating a directory
| From: | Danny Brow | Date: | Fri, 12 Nov 2004 09:32:16 +0000 |
| Subject: | Re: Creating a directory | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201835@lists.php.net to get a copy of this message | ||
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!!
> */
>