Results 1 to 2 of 2

Thread: Writing to sub-sub directories?

  1. #1
    Join Date
    Nov 2002

    Writing to sub-sub directories?


    I have a script that can easily write to sub-directories : mysite.com/myhome/mypage.php

    However, when I try: mysite.com/myhome/extra/mypage.php it will not work

    The folder has '755' permissions set on it. Or is this a PHP / server issue?

    Thank you.

  2. #2
    Join Date
    Jan 2005
    The depth of the sub-directory should not matter.

    If you are writing to files to the directory based upon a user-run script, the folder permissions may need to be set at 666 or 777. If you are just updating a single file, you can just change the permissions for the file.

    An alternative is to change the owner of the file to nobody. You should be able to keep your current permissions and it will add a better level of security. Depending upon your hosting arrangement, you may or may not have the ability to change owners.
    Last edited by TechEvangelist; 01-24-2008 at 09:18 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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