glenelkins Posted January 7, 2007 Share Posted January 7, 2007 Im getting a parse error on here:$filename = "C:/Videotext.wmv";exec("C:\Video\VFCConsole.exe -FileIn C:\" . $filename . " -FileOut C:\tester.swf -FLV -DisableAudio",$data);I think I need to change the / to \ but using say eregi_replace("/","\",$filename) just seems to keep causing the parse error. I even tried explode() to put the \ in there. Quote Link to comment Share on other sites More sharing options...
trq Posted January 7, 2007 Share Posted January 7, 2007 You will need to escape \ which is the escape char.[code=php:0]exec("C:\\Video\\VFCConsole.exe -FileIn C:\\" . $filename . " -FileOut C:\\tester.swf -FLV -DisableAudio",$data);[/code] Quote Link to comment Share on other sites More sharing options...
glenelkins Posted January 7, 2007 Author Share Posted January 7, 2007 Why do I need to do that? Quote Link to comment Share on other sites More sharing options...
trq Posted January 7, 2007 Share Posted January 7, 2007 Because the backslash is the escape character in php. 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.