简体   繁体   中英

Does having multiple dots in a filename bad?

Is there any organization or articles that says we can or should not have multiple dots in filename? I'm really confuse if I should use dot in PHP files, I might break some rules or standards.

A filename with multiple dots does not break any PHP naming conventions, because file names are not PHP variable names; they belong to the OS really and PHP only sees them as strings.

EDIT

I looked around and found cases for multiple dots: version numbers and dates. There has been some discussion as to whether these increase or decrease SEO value but I have not found anything conclusive. It does show however that they are used.

Tip: Try the following Google search: seo periods in filenames

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM