mkdir() in safe_mode

This is a discussion on mkdir() in safe_mode within the PHP Language forums, part of the PHP Programming Forums category; Hy, i encountered a weird problem on a server running php5, and apache. Seems like i cannot create folders that ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008
_q_u_a_m_i_s's
 
Posts: n/a
Default 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...
Reply With Quote
  #2 (permalink)  
Old 02-25-2008
Captain Paralytic
 
Posts: n/a
Default Re: mkdir() in safe_mode

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"?
Reply With Quote
  #3 (permalink)  
Old 02-25-2008
_q_u_a_m_i_s's
 
Posts: n/a
Default Re: mkdir() in safe_mode

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:
>
> > 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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0