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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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... |
|
|||
|
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"? |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|