mkdir() in safe_mode

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • _q_u_a_m_i_s's

    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...
  • Captain Paralytic

    #2
    Re: mkdir() in safe_mode

    On 25 Feb, 14:29, "_q_u_a_m_i_s's " <qua...@gmail.c omwrote:
    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"?

    Comment

    • _q_u_a_m_i_s's

      #3
      Re: mkdir() in safe_mode

      On Feb 25, 4:47 pm, Captain Paralytic <paul_laut...@y ahoo.comwrote:
      On 25 Feb, 14:29, "_q_u_a_m_i_s's " <qua...@gmail.c omwrote:
      >
      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

      Comment

      Working...