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

PHP使用GD函數切正方形圖像

PHP使用GD函數切正方形圖...

基本上大都是等比例將圖片上傳.... 但有時也會有需要正方形邊長的圖像需求 這時候還是得靠GD函式了...

臺北典藏植物園

臺北典藏植物園

5年寒假前,綠的學校安排了戶外教學,地點臺北典藏植物園。 和同學們一起搭了火車,搭了公車,走路,最後...

PHP 如何檢測陣列是否有重複值

PHP 如何檢測陣列是否有重...

pexelsphoto55 PHP陣列,是在coding時常用到的儲存資料的方式。 但,若陣列中的資...

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