您好,登錄后才能下訂單哦!
<?php if (isset ($_GET['type'])&& $_GET['type']=="send"){ if ($_FILES['userfile']['error']==0) { /*echo 'File Name: '.$_FILES['userfile']['name'].'<br>'; echo 'File Type: '.$_FILES['userfile']['type'].'<br>'; echo 'File Size: '.$_FILES['userfile']['size'].'<br>'; echo 'Temporary Name: '.$_FILES['userfile']['tmp_name'].'<br>';*/ $tmpFile= $_FILES['userfile']['tmp_name']; $newFile=getcwd().'/'.$_FILES['userfile']['name']; if (move_uploaded_file($tmpFile, $newFile)) echo ' <p ><strong>Your file is uploaded successfully.</strong></p> '; else echo ' <p ><strong>An error occurred while uploading.</strong></p> '; }else echo 'An Error occuerd NO.: '.$_FILES['userfile']['error'].'<br>'; } ?> <html><body> <div > <form enctype= "multipart/form-data" action= "<?php echo $_SERVER['PHP_SELF'].'?type=send' ?>" method= "POST" > <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <span > <strong><span >Upload Your File: </span><br> </strong></span><br ><span ><strong>File: </strong> </span> <input name="userfile" type="file" /> <br> <br > <input type="submit" value="Send" /> <br><font face="Tahoma"><a target="_blank" ><span >PHP Free Code</span></a></font> </form></div> </body></html>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。