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
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to