calmchess Posted May 20, 2013 Share Posted May 20, 2013 I'm having trouble running this shell exec ....I suspect since there are spaces that it doesn't want to run it either that or there are restrictions on coping files from the system program files space. Can anybody shed some light on why i get the error the syntax of the command is incorrect? $test = shell_exec("copy /Y 'C:\Program Files\Adobe\Adobe Media Server 5\applications\\video_chat\streams\\$roomidX\\$roomidX$streamidX.flv' C:\webserver\dev\book\images\\$roomidX$streamidX.flv"); --calmchess Link to comment https://forums.phpfreaks.com/topic/278208-difficulty-using-shell_exec/ Share on other sites More sharing options...
Muddy_Funster Posted May 20, 2013 Share Posted May 20, 2013 you seem to have grasped the need to escape your backslashes a little late when creating the exec string.... Link to comment https://forums.phpfreaks.com/topic/278208-difficulty-using-shell_exec/#findComment-1431190 Share on other sites More sharing options...
calmchess Posted May 20, 2013 Author Share Posted May 20, 2013 nevermind I just had to escape quotes instead of using single quotes go figure. Link to comment https://forums.phpfreaks.com/topic/278208-difficulty-using-shell_exec/#findComment-1431192 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.