On Thu, October 19, 2006 1:49 pm, Tom Ray [Lists] wrote:
> Is it possible to have a PHP script execute as the user of the domain
> instead of the webserver? So when I upload files through a PHP script
> they are owned by me and not "wwwrun" or "nobody"?

On a dedicated server, it's trivial to do it.
Look in httpd.conf for "User"
Could also be dangerous, or a boon, depending on what you do with it
next, and what you do with it years down the road...

On a shared server, with VirtualHosts, it gets more complicated
You're looking at proxyservers, fastcgi with suexec or similar stuff.
This also brings some potential dangers etc.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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

Reply via email to