Home  >  Article  >  CMS Tutorial  >  Where are the pictures of articles generated by Empire CMS?

Where are the pictures of articles generated by Empire CMS?

下次还敢
下次还敢Original
2024-04-17 08:03:12714browse

Empire CMS article images are stored in the /d/file/diy path, the file name format is id_serial number.png, and the main image sequence number is 0. Access the image URL: http://[website address]/d/file/diy/[image file name].

Where are the pictures of articles generated by Empire CMS?

Empire CMS generates article picture path

The picture files generated by Empire CMS are stored in the following path:

<code>/d/file/diy</code>

Detailed path composition:

  • /d/: Empire CMS data directory
  • file/: File storage folder
  • diy/: Custom path folder, used to store article images

Image file name rules:

The file names of article images usually follow the following rules:

  • id_: Article ID
  • _0 : Picture serial number (0 represents the main picture of the article, 1 represents the first accompanying picture, and so on)
  • .png: Picture file format

For example , the main image file name of the article with the article ID 12345 will be:

<code>12345_0.png</code>

Access image URL:

You can use the following URL to access the article image:

<code>http://[您的网站地址]/d/file/diy/[图片文件名]</code>

For example:

<code>http://www.example.com/d/file/diy/12345_0.png</code>

The above is the detailed content of Where are the pictures of articles generated by Empire CMS?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn