Video tutorial for learning PHP: The importance of file naming rules
The file name is to make it easier for people to distinguish different files in the computer, and to set a designated name for each file. It consists of the main name of the file and its extension.
The DOS operating system stipulates that the file name consists of the file main name and the extension name. The file main name consists of 1 to 8 characters. Illegal characters in the Linux file name . The extension name consists of 1 to 3 characters. The name and extension are separated by a small dot, often called the 8.3 rule. (Recommended learning: PHP video tutorial)
The format is as follows:
□□□□□□□□.□□□
Copy after login
For example: G9401.DBF, here G9401 is the main name of the linux scheduled task, and DBF is the extension name. The characters that can be used for the file main name and extension are:
(1) English letters: A—z (upper and lower case equivalent)
(2) Number: 0-9
(3) Chinese characters
(4) Special symbols: $#&@ ()-[]^~, etc.
(5) Various control characters and the following characters cannot be used in file names:
/|:"*?
Because those characters have been used for other purposes.
windows breaks through the restrictions of DOS on file naming rules and allows the use of long file namesIllegal characters in Linux file names. The main naming rules are as follows:
(1) The maximum length of the file name can be 255 characters.
(2) You can use an extension name. The extension name is used to indicate the file type. You can also use an extension name with multiple separators. For example, win.ini.txt is a legal file name, but its file type is determined by the last extension.
(3) Spaces are allowed in file names, but the following characters are not allowed (Chinese input method status): /|:"*?
(4) The windows system displays different cases of letters in file names, but does not distinguish between upper and lower case when using them.
The file name is an indication of the existence of the file, and the operating system controls and manages it according to the file name. Different operating systems have slightly different rules for file naming, that is, the format and thickness of the file name vary from system to system. Such as :UNIX/LINUX systems distinguish the case of file names, while some systems do not distinguish, such as: MS-DOS and WINDOWS.
The file extension is used to distinguish the attributes of the file. In some systems, it is not perceived by the system. For example: in UNIX/LINUX systems, there is no difference between the hello.c file and the helloc file for the system. Adding the extension .c is the same as not adding it. The system does not know what file it is. But after the user adds .c, it is easier for the user to understand that it is a C language source code file.
However, in MS-DOS and WINDOWS systems, file extensions are system-aware. In WINDOWS, different file extensions have their associated programs to open. This extension is not only such as txt, etc. Except for the original ones, the rest are usually registered in the system when installing the software. You can see its related information under the HKEY-CLASSES-ROOT root key in the registry.
If you change the file extension to one that is not recognized by the system, you will be prompted to select the program to open it when opening it. For example, if you change hello.txt to hello.123, you can also see that the icon has also changed, becoming Unknown. And for WORD files such as .doc format, because it was developed by MICROSOFT, it maintains good compatibility. When sensing, the system not only detects the extension name, but also detects the internal format mark of the file, so although .doc is Change it to other characters. In a system with WORD installed, the system can still associate it with WORD for opening.
The above is the detailed content of Video tutorial for learning PHP: The importance of file naming rules. For more information, please follow other related articles on the PHP Chinese website!

Learning Linux is not difficult. 1.Linux is an open source operating system based on Unix and is widely used in servers, embedded systems and personal computers. 2. Understanding file system and permission management is the key. The file system is hierarchical, and permissions include reading, writing and execution. 3. Package management systems such as apt and dnf make software management convenient. 4. Process management is implemented through ps and top commands. 5. Start learning from basic commands such as mkdir, cd, touch and nano, and then try advanced usage such as shell scripts and text processing. 6. Common errors such as permission problems can be solved through sudo and chmod. 7. Performance optimization suggestions include using htop to monitor resources, cleaning unnecessary files, and using sy

The average annual salary of Linux administrators is $75,000 to $95,000 in the United States and €40,000 to €60,000 in Europe. To increase salary, you can: 1. Continuously learn new technologies, such as cloud computing and container technology; 2. Accumulate project experience and establish Portfolio; 3. Establish a professional network and expand your network.

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

The Internet does not rely on a single operating system, but Linux plays an important role in it. Linux is widely used in servers and network devices and is popular for its stability, security and scalability.

The core of the Linux operating system is its command line interface, which can perform various operations through the command line. 1. File and directory operations use ls, cd, mkdir, rm and other commands to manage files and directories. 2. User and permission management ensures system security and resource allocation through useradd, passwd, chmod and other commands. 3. Process management uses ps, kill and other commands to monitor and control system processes. 4. Network operations include ping, ifconfig, ssh and other commands to configure and manage network connections. 5. System monitoring and maintenance use commands such as top, df, du to understand the system's operating status and resource usage.

Introduction Linux is a powerful operating system favored by developers, system administrators, and power users due to its flexibility and efficiency. However, frequently using long and complex commands can be tedious and er

Linux is suitable for servers, development environments, and embedded systems. 1. As a server operating system, Linux is stable and efficient, and is often used to deploy high-concurrency applications. 2. As a development environment, Linux provides efficient command line tools and package management systems to improve development efficiency. 3. In embedded systems, Linux is lightweight and customizable, suitable for environments with limited resources.

Introduction: Securing the Digital Frontier with Linux-Based Ethical Hacking In our increasingly interconnected world, cybersecurity is paramount. Ethical hacking and penetration testing are vital for proactively identifying and mitigating vulnerabi


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Chinese version
Chinese version, very easy to use

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool