/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // Usage: uploadfile($_FILE['file']['name'],'temp/',$_FILE['file']['tmp_name']) function uploadfile($origin, $dest, $tmp_name) { $fulldest = $dest.$origin; $filename = $origin; { $fulldest = $dest.$newfilename; } return $filename; return false; } ?>