[PHP] Re: I'm confused, but it works

2008-01-19 Thread Apple7777
> isolate what caused a problem when they arise. > > -nathan > Thanks for advice, I'll do hard test for this script and if it will stop working I'll do as you just said. Thank you guys for everything. It's really appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] I'm confused, but it works

2008-01-19 Thread Apple7777
Nathan Nobbe gmail.com> writes: > if it works there, and not from the browser, id imagine its a permissions > issue Ok, I wrote simple script and run it from CLI. It works. Then I've tried to run simple script from browser, it works too. Then I thought it's some conflict of MySQL and Mencoder.

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

2008-01-19 Thread Apple7777
Nathan Nobbe gmail.com> writes: > have you tried a trivial call to mencoder, like i suggested? > it looks like you were passing a lot of parameters to it in the code you > first > posted. try starting out w/ something simple and get that working before > going > for the full blown finished versi

[PHP] Re: Still can't fix it.

2008-01-19 Thread Apple7777
Jochem Maas iamjochem.com> writes: > > Apple schreef: > > Still can't fix it. I've checked everything like 20-30 times, I feel like crazy. > > Everything should work fine, but it doesn't. :( > > > > If anyone have an idea about what it c

[PHP] Re: Still can't fix it.

2008-01-19 Thread Apple7777
Nathan Nobbe gmail.com> writes: > have you been trying to run the script from the cli, or from the browser? > i would first try to run your php script from the cli; eg. > php myMencoderScript.php > I've tried only to run it from browser. I've just tried to run it from cli and I get error me

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

2008-01-19 Thread Apple7777
Richard Lynch l-i-e.com> writes: > They also won't have your same environment, e.g., home directory $HOME. > > Check permissions on all files/directories. > > Use complete pathnames from the root hard drive: > /home/apple/path/to/$outputFile I do that. All permissions (files and directories) a

[PHP] Still can't fix it.

2008-01-19 Thread Apple7777
Still can't fix it. I've checked everything like 20-30 times, I feel like crazy. Everything should work fine, but it doesn't. :( If anyone have an idea about what it can be, please let me know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-01-18 Thread Apple7777
Daniel Brown gmail.com> writes: > > On Jan 17, 2008 6:48 PM, Apple 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

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

2008-01-18 Thread Apple7777
Daniel Brown gmail.com> writes: > 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? Daniel, I'm not sure about U

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

2008-01-17 Thread Apple7777
ng 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? > > On Thu, January 17, 2008 6:46 am, Apple wrote: > > Daniel Brown gmail.com> writes: > > > >>

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

2008-01-17 Thread Apple7777
Daniel Brown gmail.com> writes: > Try replacing system() with die() and letting it print out the > information full command string. That may give you an idea of a > variable that's either incorrect or undefined. If you copy and paste > it and run the command from the command line and it wor

[PHP] system command runs application, but application doesn't work correctly

2008-01-16 Thread Apple7777
Hello, I'm trying to run mencoder command line utility to encode videos. When I use these two command in terminal (through SSH), everything works fine. But when I run them from PHP script with system command, it doesn't work. The commands are: First pass: system("/usr/local