$realname = $_FILES['userfile']['name']; if(copy($_FILES['userfile']['tmp_name'], '/Users/rene/Sites/renefournier/titan/res/'.$realname)) { echo $realname.' uploaded'; } else { echo $realname.' could not be uploaded'; }
echo '<br>'; echo "name: ".$_FILES[$fld]['name']; echo '<br>'; echo "type: ".$_FILES[$fld]['type']; echo '<br>'; echo "size: ".$_FILES[$fld]['size']; echo '<br>'; echo "tmp: ".$_FILES[$fld]['tmp_name']; echo '<br>';
Here is the output:
could not be uploaded name: web_share.gif type: image/gif size: 13370 tmp: /var/tmp/phpNqigbO
Thanks for any ideas.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php