Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #6897 > unrolled thread

Re: Folder Permissions

Started byScott Johnson <noonehome@chalupasworld.com>
First post2012-08-28 06:09 -0700
Last post2012-08-28 06:09 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.php

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Folder Permissions Scott Johnson <noonehome@chalupasworld.com> - 2012-08-28 06:09 -0700

#6897 — Re: Folder Permissions

FromScott Johnson <noonehome@chalupasworld.com>
Date2012-08-28 06:09 -0700
SubjectRe: Folder Permissions
Message-ID<k1iftp$2lp$1@dont-email.me>
On 8/28/2012 5:28 AM, BigNate wrote:
> Hi folks
> I have an site I've set up where I create a directory using PHP using mkdir().  That works great and I'm writing files within it using the same script.  The problem I came across this morning is while manually moving files from an old version to the new directory via ftp.  I'm getting a permissions error saying Access is denied.  I believe it is due to the owner of the folder that I created using mkdir() is different than the one I'm using to copy the files to, but I'm not sure how to fix this.  Can I change it while creating the directory in the first place or is it possible to modify it in cpanel for a short time so I can copy my files and then change it back?  Any help would be appreciated.
>
> If you have any ideas or need more info, please let me know.
>

You may be able to use

chmod($dir, '777'); Or whatever permission you need.

It has been while since I have had to use this so you may want to search 
on it.

http://www.php.net/manual/en/function.chmod.php

[toc] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web