does php mkdir work ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rodeored
    Junior Member
    • May 2004
    • 9

    #1

    does php mkdir work ?

    I'm trying to let users make thier own directories
    mkdir($dir)

    This returns false, and I don't know why.
    Is it because its not allowed on this server ?
  • -Oz-
    Senior Member
    • Mar 2004
    • 545

    #2
    it works for me. I chmoded the folder where i'm making the folder 777 but that may not be neccessary. Make sure you use the full root path, try:
    Code:
    mkdir($_SERVER['DOCUMENT_ROOT']."/".$dir)
    Dan Blomberg

    Comment

    • sdjl
      Senior Member
      • Mar 2004
      • 502

      #3
      You need to make sure the directory in which you're making the other directories is chmod'd correctly, as Oz says above really!

      However, it should be Chmod'd 755 as Dathorn uses phpsuexec.

      David
      -----
      Do you fear the obsolescence of the metanarrative apparatus of legitimation?

      Comment

      • rodeored
        Junior Member
        • May 2004
        • 9

        #4
        Originally posted by -Oz-
        it works for me. I chmoded the folder where i'm making the folder 777 but that may not be neccessary. Make sure you use the full root path, try:
        Code:
        mkdir($_SERVER['DOCUMENT_ROOT']."/".$dir)
        Yep. I guess I was jumpin to conclusions instead of thinkin it thru. (again)
        I didn't change the permissions, all I did was use the full root path and that worked. Thanks.

        Comment

        Working...