document.writeln('');
批量存入txt
以下是完整的文件架構:
project_root/
│
├── css/
│ ├── style.css # 全局樣式
│ ├── index.css # 首頁樣式
│ └── search.css # 搜索頁樣式
├── database/
│ ├── dramas.txt # 短劇數據
│ └── users.txt # 用戶數據
├── index.php # 首頁
├── search.php # 搜索頁面
├── login.php # 登錄頁面
├── auth.php # 認證處理
├── logout.php # 退出登錄
├── drama_list.php # 短劇管理列表
├── drama_add.php # 添加短劇
├── drama_edit.php # 編輯短劇
└── drama_delete.php # 刪除短劇
數據庫文件格式
users.txt
Apply
username|password
admin|123456
dramas.txt
Apply
1|短劇標題1|http://example.com/drama1
2|短劇標題2|http://example.com/drama2
3|短劇標題3|http://example.com/drama3
主要文件說明
1. css/ – 樣式文件目錄
style.css:全局通用樣式
index.css:首頁專用樣式
search.css:搜索頁專用樣式
2. database/ – 數據文件目錄
dramas.txt:短劇數據(格式:ID|標題|鏈接)
users.txt:用戶數據(格式:用戶名|密碼)
PHP文件:
index.php:網站首頁
search.php:搜索功能
login.php:用戶登錄
auth.php:身份驗證
logout.php:退出登錄
drama_list.php:短劇管理
drama_add.php:添加短劇
drama_edit.php:編輯短劇
drama_delete.php:刪除短劇
注意事項
確保 database/ 目錄有正確的讀寫權限
所有文件使用 UTF-8 編碼
文件名區分大小寫
保持文件結構的完整性
建議的權限設置:
目錄:755 (drwxr-xr-x)
PHP文件:644 (rw-r–r–)
數據文件:666 (rw-rw-rw-)

