Files
image-pichost/README-en.md
2025-12-02 13:28:04 +00:00

70 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 📘 PicHost Image Hosting
| Free | Open Source | Stable | Feature-rich | Practical | API | PHP |
![](https://img.shields.io/badge/Original%20Author-Xiaoxiaobai5724-red) ![](https://img.shields.io/badge/License-MIT-blue) ![](https://img.shields.io/badge/Version-v1.1-green)
[![](https://img.shields.io/badge/🇨🇳Simplified%20Chinese-pink)](http://leonmmcoset.jjxmm.win:2000/odoorbell/image-pichost/src/branch/main/README.md) [![](https://img.shields.io/badge/🇱🇷English-yellow)](http://leonmmcoset.jjxmm.win:2000/odoorbell/image-pichost/src/branch/main/README-en.md)
---
### 🤔 Why Did I Create This Project?
Current image hosting services often require various PHP functions and complex configurations, with inconsistent quality. I wanted to develop a purely handcrafted, open-source image hosting platform. Writing the code myself is also more secure.
### 😘 Acknowledgments
Thanks to the users in NodeLoc, whose support motivated me to keep going and encouraged me to open-source the project early.
### 😜 Installation
Hmmm... It is not recommended to download using Git commands to avoid permission issues. Simply upload the files directly to your server, and it's ready to use!
Prerequisites:
- PHP 8.2 or similar (not confirmed)
- MySQL support
- Looking for experts to help test it
1. Modify `config.php`
After setting up the database, go to lines 15-18 of the file:
```
HOST → Database domain
NAME → Database name
USER → Database username
PASS → Database password
```
PS: Be careful when editing the file; do not delete any other symbols.
Go to lines 20-24:
```
WEB → Website URL
SITE → Site name
(↓ The values below can be filled in later or left empty)
MAX_FILE_SIZE → X*X*X
ALLOWED_TYPES → ['jpg', 'jpeg', 'png', 'gif', 'webp']
```
Go to lines 26-33 (if you dont know how to fill these, search for tutorials online):
```
EHOST → Email domain provider
NUM → Email port number
EUSER → Recipient email
EPASS → Authorization code
FUSER → Sender email
FNAME → Sender name
SECURE → Protocol (ssl for encrypted, tls for unencrypted)
```
For the rest, fill them out only if you know how; otherwise, it's best not to touch them.
2. `languages/zh-CN.php`
This is the Chinese language pack. You can fill in your own `site_title`.
## 🌟 Issues (Problems)
Its best to report any issues in the `issue` section, as NL (NodeLoc) might not always check.
## ✈️ Updates
There is no automatic update feature; you need to download the new version manually.
---
Give it a Star, please! awa
Thank you