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 Quote Link to comment 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.... Quote Link to comment Share on other sites More sharing options...
Solution calmchess Posted May 20, 2013 Author Solution Share Posted May 20, 2013 nevermind I just had to escape quotes instead of using single quotes go figure. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.