For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > February 2008 > mkdir() in safe_mode









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author mkdir() in safe_mode
_q_u_a_m_i_s's

2008-02-25, 7:03 pm

Hy,
i encountered a weird problem on a server running php5, and apache.
Seems like i cannot create folders that end with "/".
for example:
mkdir("test/") will fail
mkdir("test") will work

Is there any issue with mkdir that i don`t know about? or safe_mode
affects this in any way?
The problem is that mkdir is called in lots of different places in the
application, and i`d prefer not to make another function just to strip
the last "/" from the paths...
Captain Paralytic

2008-02-25, 7:03 pm

On 25 Feb, 14:29, "_q_u_a_m_i_s's" <qua...@gmail.com> wrote:
> Hy,
> i encountered a weird problem on a server running php5, and apache.
> Seems like i cannot create folders that end with "/".
> for example:
> mkdir("test/") will fail
> mkdir("test") will work
>
> Is there any issue with mkdir that i don`t know about? or safe_mode
> affects this in any way?
> The problem is that mkdir is called in lots of different places in the
> application, and i`d prefer not to make another function just to strip
> the last "/" from the paths...


Did you think of putting
safe mode mkdir slash
into Google and clicking "I'm Feeling Lucky"?
_q_u_a_m_i_s's

2008-02-25, 7:03 pm

On Feb 25, 4:47 pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> On 25 Feb, 14:29, "_q_u_a_m_i_s's" <qua...@gmail.com> wrote:
>
>
>
> Did you think of putting
> safe mode mkdir slash
> into Google and clicking "I'm Feeling Lucky"?


thx:) i only looked over the manual , and seemed pretty weird as
mkdir() always worked on the test server.. :D
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com