Verification of file name validity under Windows system
On Windows systems, to verify whether a given string is a valid file name, you need to follow the established naming convention. These conventions state that the file name must be:
Prohibited characters:
Other inspections:
?\
prefix. ?\
may exceed 32,000 characters, but directory expansion may cause overflow. The above is the detailed content of How Can I Check if a String is a Valid Windows File Name?. For more information, please follow other related articles on the PHP Chinese website!