SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    creating directories above web-root

    Quick question: is php able to create new directories (folders) above the webroot? If not, is there any way to automate the task (like when a user signs up, an upload directory for that user is created above the webroot)

    Thanks

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,146
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    The apache instance running php can write anywhere on the server so long as write permissions have been granted. Normally when on a shared host write permissions will be restricted to that of the home directory. Normally that is the parent of the web root though it could differ based on vendor.
    The only code I hate more than my own is everyone else's.

  3. #3
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome...thanks!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •