tecdesign Posted July 12, 2007 Share Posted July 12, 2007 I tried the following script if(is_uploaded_file($_FILES['file']['tmp_name'])) { // file uploaded to server move_uploaded_file($_FILES['file']['tmp_name'], "/FILES/$username".$_FILES['form_image']['name']); } else { print ('<p class="bl"><strong>Unable to upload file.</strong></p><p>'); print_r($_FILES); print('</p>'); } With no luck, I have no trouble when working with linux hosting using php 4.4 although this is windows hosting using PHP 5 Link to comment https://forums.phpfreaks.com/topic/59561-php-file-upload-on-windows-hosting/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.