Re: mkdir no such file or directory [message #181412 is a reply to message #181409] |
Wed, 15 May 2013 18:44 |
Robert Heller
Messages: 60 Registered: December 2010
Karma:
|
Member |
|
|
At Wed, 15 May 2013 08:20:45 -0700 (PDT) "Bhushan N.N" <bhushan154(at)gmail(dot)com> wrote:
>
> ie, if my website is called example, the structure will be
>
> example
> index.php
> upload.php
> search.php
> uploads
> 12209214
> somefile.txt
> 31231203
> otherfile.txt
> about.php
> contact.php
>
That means you don't want "/uploads"! If the mkdir code is in upload.php,
then you really do want:
$directory = dirname(__FILE__) . "/uploads/" . time();
--
Robert Heller -- 978-544-6933 / heller(at)deepsoft(dot)com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
|
|
|