Re: Please assist - been on this for hours - Permissions onserver
| From: | Jason Wong | Date: | Fri, 11 Jul 2003 08:47:03 +0000 |
| Subject: | Re: Please assist - been on this for hours - Permissions onserver | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154840@lists.php.net to get a copy of this message | ||
On Friday 11 July 2003 15:20, Steve Jackson wrote:
> > Writing and moving require the same permissions. Also, there is a big
> > difference between root and webroot. Which one are you talking about?
>
> Web root.
> Sorry not the root directory of the server but the webroot. 1 directory
> back in fact is all I need so the structure would be:
>
> Web> Cms> generator.php
> Web> generated.php
>
> So I can protect the CMS directory which currently needs to be chmod 777
> in order to write the page (at least that was the only way I could get
> the write function to work) and then just have the written files drop
> back into the web root so that if someone typed:
>
> http://www.mysite.com/generated.php
>
> They would get the page.
>
> Not (as I can currently do)
> http://www.mysite.com/cms/generated.php
You can use php's ftp functions to write the file into your webroot directory.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
One enemy soldier is never enough, but two is entirely too many
-- Murphy's Military Laws n68
*/