Home > CMS Tutorial > Empire CMS > body text

Where are the pictures of articles generated by Empire CMS?

下次还敢
Release: 2024-04-17 08:03:12
Original
735 people have browsed it

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>
Copy after login

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>
Copy after login

Access image URL:

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

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

For example:

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template