Not sure where to ask this simple question, so here goes:
I seem to see folder navigation written with both the / and the \ character, though usually something like C:/xampp/htdocs.
What is the different between / and \ in this context?
Robert
Not sure where to ask this simple question, so here goes:
I seem to see folder navigation written with both the / and the \ character, though usually something like C:/xampp/htdocs.
What is the different between / and \ in this context?
Robert
The original problem arose when DOS 2 descided to use / for switches instead of - and so when they introduced directories in DOS 3 they had to use \ instead of the more commonly used /
On the web / will work even for DOS/windows references since the web doesn’t have switches on commands to cause that conflict.
\ usually means that the following character is escaped on the web so where you really want a \ you have to escape it by using \\
Usually the forward slash is used by Linux/Mac, and the backward slash by Windows.
In HTTP requests, a forward slash must be used. Therefore in HTML you would use forward slashes to denote a path.
Windows allows the use of forward slashes, because it silently converts them. I don’t think Linux converts backward slashes into forward slashes.