[eluser]pdxbenjamin[/eluser]
I have a script, it's a fork off ffmpeg called ffmpeg2theora. It is a .bin file. I've been told that these .bin files are like .exe's on Windows. From my php scripts in the controllers I have to execute them with the exec function.
exec("./ffmpeg2theora-0.27.linux64.bin [options] filename");
But what I'm thinking is that I have a path issue. Because my .bin will not execute from script.
However, I can execute it fine from the command line. It actually works really well, and makes ogv files like a champ.
From my script if I do something like this... and add the absolute path it still doesn't work.
exec("./srv/scripts/ffmpeg2theora-0.27.linux64.bin [options] filename");
I have the file in a folder outside my www directory where my Ci stuff is.
for example...
/
srv/
/scripts
/www
/public_html
/system
so on and so on...
If anyone can help with my path issues, or get exec to kick me some errors so I can see what's going on that would be very much appreciated. Thanks!