Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #6896
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Folder Permissions |
| Date | 2012-08-28 14:08 +0100 |
| Organization | albasani.net |
| Message-ID | <k1ifsc$bfb$1@news.albasani.net> (permalink) |
| References | <e8a69954-061c-41a7-92d9-2b40ffc26115@googlegroups.com> |
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()
That will be the web server permissions
> is different than the one I'm using to copy the files to,
Copy files WITH - that will be your FTP login....
> but
> I'm not sure how to fix this. Can I change it while creating the
> directory in the first place
A chmod should work within a php script
chmod("directory name", 0777);
should work.
You only need do it once.
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.
>
CPANEL? WTF is that?
> If you have any ideas or need more info, please let me know.
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
Back to comp.lang.php | Previous | Next | Find similar | Unroll thread
Re: Folder Permissions The Natural Philosopher <tnp@invalid.invalid> - 2012-08-28 14:08 +0100
csiph-web