遠端上傳檔案

2006-12-24 11:22 pm
請問有沒有人識點樣用php寫遠端上傳...

小弟而家好需要...望大家能幫幫手

回答 (2)

2006-12-25 2:40 am
✔ 最佳答案
if($_FILES['userfile']['name']) {
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $_POST['fname'])) {
echo "File is valid, and was successfully uploaded.\n";
echo &quot;<a rel="nofollow">&quot;.$_POST[&#39;fname&#39;].&quot;</a>&quot;;
} else {
echo &quot;Possible file upload attack!\n&quot;;
}
} else {
?&gt;



Send this file:
參考: google
2006-12-25 12:20 am
其實寫遠端上傳唔一定要用php~好多時都有軟件可以做到。


收錄日期: 2021-04-12 21:35:57
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061224000051KK02198

檢視 Wayback Machine 備份