By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,303 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,303 IT Pros & Developers. It's quick & easy.

mkdir() in safe_mode

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.