Loading...

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

Temperature: 0 °C

ChungChung
編輯"../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

定義404頁面

定義404頁面

什麼是頁面? HTTP 或Not Found錯誤訊息是HTTP的其中一種「標準回應訊息...

如何用javascript判斷字串中必須包含中英文

如何用javascript判斷字串中必須包含中英文

字串拆開逐字檢查方式~ 首先將每一個字轉換成 ASCII 碼。 在使用for迴圈去檢查...

PHP網路爬蟲之抓取meta value

PHP網路爬蟲之抓取meta value

最近在研究著如何抓取網頁中的meta值... php中的getmetatags函式可以...

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