Re: Re: system command runs application, but application doesn't work correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, January 18, 2008 4:49 pm, Apple7777 wrote:
> I wonder is it possible to run system() command, so mencoder will run
> as from
> root (user "500") and not PHP (user "43").

No.

system() versus exec() has nothing to do with which user runs it.

They only differ in how they handle input/output to your script.

exec is the most flexible, so use that.

> Maybe that's the problem?

If would be a HUGE problem if PHP could run as root, at all. [shudder]

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux