This is a discussion on Changing file owner within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Is there a way to change the owner of a file useing php. Like when a photo gallery script creates ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
While sitting in a puddle Michael Vilain scribbled in the mud:
> In article <Xns9624872103A59httpwipkipbiz@130.133.1.4>, > Duende <usenetshit@sify.com> wrote: > >> Is there a way to change the owner of a file useing php. Like when a >> photo gallery script creates thumbnails they seam to have a different >> owner than files I upload. > > http://us2.php.net/manual/en/function.chown.php > > However, the files you upload and create with your web server's mod_php > are probably owned by the web server process. Unless you're root on a > Unix box, you won't be able to change that ownership. This is just the > way this setup works. You have to access those files via php on the > web, but that's it. > > If you want to have the files owned by your UID, use a CGI script (perl > or php as a command line) with CGIwrap: > > http://cgiwrap.sourceforge.net/ > Thanks Michael -- D? |