471,066 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

mkdir() in safe_mode

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...
Feb 25 '08 #1
2 1863
On 25 Feb, 14:29, "_q_u_a_m_i_s's" <qua...@gmail.comwrote:
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"?
Feb 25 '08 #2
On Feb 25, 4:47 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
On 25 Feb, 14:29, "_q_u_a_m_i_s's" <qua...@gmail.comwrote:
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"?
thx:) i only looked over the manual , and seemed pretty weird as
mkdir() always worked on the test server.. :D
Feb 25 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Henrik Oddershede | last post: by
reply views Thread by Gerrit Kuilder | last post: by
1 post views Thread by David Ruiz | last post: by
2 posts views Thread by Salmo Bytes | last post: by
1 post views Thread by Felix Natter | last post: by
1 post views Thread by ramc18 | last post: by
30 posts views Thread by MikeC | last post: by
reply views Thread by Zeilkman | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.