Re: mkdir no such file or directory [message #181391 is a reply to message #181388] |
Wed, 15 May 2013 04:37 |
Richard Yates
Messages: 86 Registered: September 2013
Karma:
|
Member |
|
|
On Tue, 14 May 2013 20:06:19 -0700 (PDT), "Bhushan N.N"
<bhushan154(at)gmail(dot)com> wrote:
> Here is my code again
>
> $filelocation = "/uploads/" . "/" . time();
> if (mkdir($filelocation,0777,true))
> {
> echo("Thank you for uploading the file.");
> }
> else
> {
> echo("Oops error uploading file.");
> }
>
> On Tuesday, 14 May 2013 21:04:27 UTC-6, Bhushan N.N wrote:
>> I want to create a directory using mkdir. But I get "No such file or directory" error.
>>
>>
>>
>> Below is the code I am using.
>>
>>
>>
>> $filelocation = "/uploads/" . "/" . time();
>>
>>
>>
>> Can some one please tell me what I am doing wrong?
>>
>>
>>
>> I also tried manually creating the uploads folder. Still the same error. Any help will be much appreciated.
I don't know anuything about mkdir, but isn't:
"/uploads/" . "/" . time() the same as:
"/uploads//".time();
Are those two forward slashes causing the error?
|
|
|