nadeemshafi9 Posted September 4, 2006 Share Posted September 4, 2006 hi alli hav aprob running a programm i downloaded.[code]<?php $cmd = "soxmix tmp/audio1.wma tmp/audio2.wma tmp/final.wma"; shell_exec($cmd);?>[/code]pretend u wanted to execute the above code, you just downloaded the soxmix software its an exe, where would you place the software. i would have thoght system32 or somthing, can somone please give me a hand.thanx Link to comment https://forums.phpfreaks.com/topic/19623-shell_exec-prog-prob/ Share on other sites More sharing options...
Jenk Posted September 4, 2006 Share Posted September 4, 2006 [code]<?php $cmd = "soxmix tmp/audio1.wma tmp/audio2.wma tmp/final.wma"; echo shell_exec($cmd);?>[/code]output? Link to comment https://forums.phpfreaks.com/topic/19623-shell_exec-prog-prob/#findComment-85483 Share on other sites More sharing options...
nadeemshafi9 Posted September 4, 2006 Author Share Posted September 4, 2006 well it says nothin im running windows Link to comment https://forums.phpfreaks.com/topic/19623-shell_exec-prog-prob/#findComment-85488 Share on other sites More sharing options...
nadeemshafi9 Posted September 4, 2006 Author Share Posted September 4, 2006 i dont know were to place the soxmix file its a program that concatinates two audio files Link to comment https://forums.phpfreaks.com/topic/19623-shell_exec-prog-prob/#findComment-85490 Share on other sites More sharing options...
Jenk Posted September 4, 2006 Share Posted September 4, 2006 do you get any output when you run it manually? (in command prompt) Link to comment https://forums.phpfreaks.com/topic/19623-shell_exec-prog-prob/#findComment-85491 Share on other sites More sharing options...
nadeemshafi9 Posted September 4, 2006 Author Share Posted September 4, 2006 yes it worke fine from the command line Link to comment https://forums.phpfreaks.com/topic/19623-shell_exec-prog-prob/#findComment-85493 Share on other sites More sharing options...
Jenk Posted September 4, 2006 Share Posted September 4, 2006 but do you get any output? Link to comment https://forums.phpfreaks.com/topic/19623-shell_exec-prog-prob/#findComment-85496 Share on other sites More sharing options...
nadeemshafi9 Posted September 4, 2006 Author Share Posted September 4, 2006 i hav solved it i put the full path in to the function and i placed the directory in the php.ini file safe_mod_dirthanx alot though for your help Link to comment https://forums.phpfreaks.com/topic/19623-shell_exec-prog-prob/#findComment-85525 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.