Re: system command runs application, but application doesn't work correctly
| From: | Apple7777 | Date: | Fri, 18 Jan 2008 22:49:01 +0000 |
| Subject: | Re: system command runs application, but application doesn't work correctly | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267603@lists.php.net to get a copy of this message | ||
Daniel Brown <parasane <at> gmail.com> writes:
>
> On Jan 17, 2008 6:48 PM, Apple7777 <applepro7777 <at> gmail.com> wrote:
> > Another strange thing is I run ImageMajick with system() in a lot
of scripts on
> > the same server and everything works fine.
> >
> > What is the problem? Do you have any idea?
>
> Does the UID (or at least GID) under which PHP is being executed
> have permissions to write to the area you're trying to save the file?
>
> Similar to above, does it have the correct permissions to read the
> incoming file?
>
> Have both $inputFile and $outputFile been properly defined? Try
> echo'ing them out just above the (commented-out) system() call line to
> be sure.
>
Just want to add to my previous post.
I wonder is it possible to run system() command, so mencoder will run as from
root (user "500") and not PHP (user "43").
Maybe that's the problem?