Re: mkdir no such file or directory [message #181398 is a reply to message #181388] |
Wed, 15 May 2013 10:23 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 15/05/13 04:06, Bhushan N.N wrote:
> Here is my code again
>
> $filelocation = "/uploads/" . "/" . time();
that looks to me like "/uploads//12345678901234567890"
which probably isn't a reason for failure with the double slash, but is
ugly.
However, do you have permission to create a directory in the root file
system of your computer?
Try removing the leading slash to its relative to wherever PHP is
operating, or better still use the PHP defined constant that tells you
where the root file system is, as a prefix.
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.
|
|
|