Loading...

使FCKeditor所上傳的圖檔檔名亂數化

Temperature: 0 °C

ChungChung
author_tools

編輯"../fckeditor/editor/filemanager/connectors/php/commands.php"

此檔.搜尋:


$sExtension = strtolower( $sExtension ) ;

在其下方新增:

$sFileName = date("Y-m-d").mt_rand().‛.‛.$sExtension;

存檔.

https://innstory.com/story-使FCKeditor所上傳的圖檔檔名亂數化-101
寫程式筆記

Prev
 PHP的日期加減運算

Next
我在檳城 

About the Author

Chung

我是chung
網路工作者
主業是網站系統開發建置
副業是做夢,寫故事
作品請參考/teme.biz
做夢請參考/innstory.com
聯絡/chung.teme@gmail.com

#有人用筆寫日記,有人用歲月寫日記,有人用照片寫日記,而我,用innstory寫日記。

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

javascript 底下使用 htmlspecialchars

javascript 底下使...

pexelsphoto Javascript中使用一個函數達到PHP的htmlspecialchar...

用distinct在MySQL中查詢多條不重複記錄值

用distinct在MySQ...

select *, count(distinct name) from table group by...

整合Facebook粉絲專頁的即時訊息,Zotabox網站打造免費線上支援平台。

整合Facebook粉絲專頁...

還記得在msn的年代,msn有提供在網站上架構即時通訊功能,方便網站管理者與user直接交談~ 現在...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format