The usual file directory structure of PHP projects
It is recommended to use a standardized file directory structure when developing a standardized independent PHP project. This helps to improve the rationality of the project's logical structure, and is beneficial for expansion and cooperation, as well as team development.
The usual file and directory structure of a complete independent PHP project is as follows:
/ project root directory
/manage background management file storage directory
/css css file storage directory
/doc storage project Document
/images Storage path of all image files (set up subdirectories according to the directory structure)
/scripts Client js script storage directory
/tpl Storage directory of all html template files of the website
/error .php error handling file (can be defined in apache error handling)
The above directory structure is a common directory structure. Depending on the specific circumstances of the specific application, you may not need to follow it completely, but try to standardize it.