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. Link to comment https://forums.phpfreaks.com/topic/33207-parse-error/ 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] Link to comment https://forums.phpfreaks.com/topic/33207-parse-error/#findComment-155026 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? Link to comment https://forums.phpfreaks.com/topic/33207-parse-error/#findComment-155035 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. Link to comment https://forums.phpfreaks.com/topic/33207-parse-error/#findComment-155039 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.