#42174 [NEW]: i used exec function to execute command and it did not executed

From: Date: Thu, 02 Aug 2007 06:39:40 +0000
Subject: #42174 [NEW]: i used exec function to execute command and it did not executed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115666@lists.php.net to get a copy of this message
From: marwa dot yousef at mediaintl dot net Operating system: Apache PHP version: 4.4.7 PHP Bug Type: Apache related Bug description: i used exec function to execute command and it did not executed Description: ------------ i want to convert a video file of any extension to a flv extension (flash extension) and save it in a specific folder. i used the execute function built in php (exec[command]) to run a command to do that but it didn't work. i don't know why. so please help me to fix this error. Reproduce code: --------------- if($config[vresize] == 1) {$encodecommand="$config[mencoder] $config[vdodir]/$vdoname -o $config[flvdodir]/".$vid."x.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=$config[vbitrate]:mbd=2:mv0:trell:v4mv:keyint=10:cbp:last_pred=3 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -vop scale=$config[vresize_x]:$config[vresize_y] -srate $config[sbitrate]"; }else { $encodecommand="$config[mencoder] $config[vdodir]/$vdoname -o $config[flvdodir]/".$vid."x.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=$config[vbitrate]:mbd=2:mv0:trell:v4mv:keyint=10:cbp:last_pred=3 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -srate $config[sbitrate]"; } if(exec("$encodecommand")) { //update flv metatags exec("flvtool2 -Uv $config[flvdodir]/".$vid."x.flv $config[flvdodir]/".$vid.".flv"); exec("$config[metainject] -Uv $config[flvdodir]/".$vid."x.flv $config[flvdodir]/".$vid.".flv"); Expected result: ---------------- convert any video file from its extension to .flv extension and move it to a flvdir folder. Actual result: -------------- didn't executed at all. -- Edit bug report at http://bugs.php.net/?id=42174&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42174&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42174&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42174&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42174&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42174&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42174&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42174&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42174&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42174&r=support Expected behavior: http://bugs.php.net/fix.php?id=42174&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42174&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42174&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42174&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42174&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42174&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42174&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42174&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42174&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42174&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42174&r=mysqlcfg

« previous php.bugs (#115666) next »