denoteone Posted May 3, 2010 Share Posted May 3, 2010 I having issues with baclslashes in my file path saved in a string. $ffmpeg = "C:\xampp\ffmpeg\bin\ffmpeg.exe" echo $ffmpeg; I get C: mpp fmpeg\bin fmpeg.exe Quote Link to comment https://forums.phpfreaks.com/topic/200572-issue-with-backslashes-in-windows-url/ Share on other sites More sharing options...
TeddyKiller Posted May 3, 2010 Share Posted May 3, 2010 These are used in your string- \x \a \f (the \x and \a is combined as \xa) They are valid expressions, just like \n is a linebreak. You MIGHT be able to prevent it using single quotes. Not quite sure. There is a function that stops this from happening.. I read it in my book, although I forgot.. Quote Link to comment https://forums.phpfreaks.com/topic/200572-issue-with-backslashes-in-windows-url/#findComment-1052495 Share on other sites More sharing options...
PFMaBiSmAd Posted May 3, 2010 Share Posted May 3, 2010 That's because inside of a double-quoted string \f and \xhh have special meaning. Because php under Windows converts / into \ before passing file paths to the operating system, you can just use / Quote Link to comment https://forums.phpfreaks.com/topic/200572-issue-with-backslashes-in-windows-url/#findComment-1052496 Share on other sites More sharing options...
Muddy_Funster Posted May 3, 2010 Share Posted May 3, 2010 Most people learn to read before they learn to write...It's on the first page http://www.phpfreaks.com/forums/index.php/topic,296708.0.html Quote Link to comment https://forums.phpfreaks.com/topic/200572-issue-with-backslashes-in-windows-url/#findComment-1052497 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.