Jump to content

php file upload on windows hosting


tecdesign

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.