|
Posted by Jim Michaels on 09/29/80 11:39
"ToMeK" <t_mih@hotmail.com> wrote in message
news:dr2acv$fqf$1@ss405.t-com.hr...
>
> "ToMeK" <t_mih@hotmail.com> wrote in message
> news:dr29j9$dt2$1@ss405.t-com.hr...
>> > >
>> > > how can i create 2 dirs ? i tried recursively...
>> > > =================================================
>> > > but it only creates first one, but not other (subdirectory) - like
>> created
>> > > dir doesn't have permissions ??
>> > >
>> > > anyone?
>> >
>> > have you got safe mode enabled? won't work then.
>>
>> how can i know is that safemode enabled and where can i enabe it?
>>
>>
>
> i just contacted my provider and he says that they cannot change
> "safe_mode"
> tag.
> he mention something about "create directories with my UID" ? can anyone
> tell me more details on that? (UID)
user id? it sould like he's referring to an ftp client thing
look. you have a function that creates one directory successfully.
sometimes you can create a whole path at once. it is possible you have to
create them nested one by one. so maybe you have to explode() the dir
string and walk through them one by one & chdir+mkdir. you could do it
recursively, or iteratively.
it's just another method.
you might also consider that you might need to chdir somewhere first before
you start your first mkdir, or at least prepend an absolute path like (what
was it?) $_SERVER[DOCUMENT_ROOT]. Otherwise, who knows where your created
directory will end up. and because of that, it might fail if it's in a
restricted area.
>
> thanks.
>
> is there another way? maybe ftp?
>
>
Navigation:
[Reply to this message]
|