search
HomeCommon ProblemThe relationship between forward slash and backslash

"/"Forward slash, English is forward slash,

"\" Backslash, English is backward slash

1. Origin of both

In most places, / (slash) is used, including Mac/Linux, and URLs. The only thing you need to remember is that Microsoft uses backslash in its operating system to set itself apart.

2. The use of both

Unix uses slash/ as the path separator, while WebThe application was first used on Unix systems, so currently all network addresses use slash/ as a separator. Windows Since the slash / is used as the parameter mark of the DOS command prompt, in order to avoid confusion, the backslash \ is used as the path separator. Therefore, the current file browsers on Windows systems use backslash \ as the path separator. With development, the DOS system has been eliminated, and the command prompt is rarely used. Slashes and backslashes can be interchanged in most cases without impact.

Small conclusion:

(1) Use forward slash / in the browser address bar URL;

https://www.php.cn/code/33093.html

(2) WindowsUse backslash\ on the file browser;

C:\PerfLogs\Admin

(3) The path that appears in the htm url() attribute, the specified path is the network Path, so forward slash / must be used;

(4) ""/" delimiter, "\" escape character

Recommended: php video tutorial

The above is the detailed content of The relationship between forward slash and backslash. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft