PHP coding specifications (1)

Source: Internet
Author: User
1 File structure | ?? Images | ?? Include | ?? Parameter | ?? Config | ?? Function | ?? Indeximages stores image files. include is a file to be referenced by the system. generally, parameter files are stored in parameter, and configuration files are stored in config. function storage method 1. File structure

|
| ?? Images
| ?? Include
| ?? Parameter
| ?? Config
| ?? Function
| ?? Index

Images stores image files. include is a file to be referenced by the system. it generally stores parameter files in parameter, config stores configuration files, and function stores method files, for example, javascript methods, and the classes of each function are also classified by functional modules.

2 file name

Folder names are generally in English and generally contain no more than 20 characters. Chinese pinyin is used only in special cases. some common folder names include: images (storing graphic files), flash (storing Flash files), and style (storing CSS files ), scripts (storing Javascript scripts), inc (storing include files), link (storing links), and media (storing multimedia files. The file name must contain lowercase letters, numbers, and underscores.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.