Loading...

刪除已上傳至server的檔案

Temperature: 0 °C

Mark ChangMark Chang
author_tools


刪除已上傳至server的檔案
管理系統,難免都會遇到要更新或刪除已經上傳到server的檔案。

總不能只是重新上傳卻又不把舊的檔案刪除,久而久之再大的server空間都會有不夠用的時候。

這個時候就需要用到unlink指令了~

作法如下:

unlink("/path/fire_name]);//刪除server上檔案

以上紀錄~
 

https://innstory.com/story-刪除已上傳至server的檔案-1796
PHP

Prev
 使用Google提供的檢查網頁工具檢查是否為惡意網站

Next
判斷字串是否存在於內容中 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

PHP如何移除 x-powered-by 資訊

PHP如何移除 x-powe...

xpoweredby 主動披露使用程式版本訊息,增加資安風險。 可透過以下方式隱藏 xpowered...

當XAMPP遇到VMWARE占用PORT 443導致無法啟動APACHE

當XAMPP遇到VMWARE...

在使用XAMPP時,若系統有安裝 VMWare Workstation,VMWare會將 port ...

PHP清空陣列函數

PHP清空陣列函數

pexelsphoto5555 unset(arrar) 將整個陣列清空,但之後如果再加入元素,其 ...

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