Re: Prob in file uploading on windows server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Parag,

I assumse here there is no problem with folder permission, upload 
limit in php.ini configuration and other technical problem at your 
wndows server.

Please try use below modification. If you still not get the file 
upload well, try adjusting $path variable. I am see your problem in 
that destination upload file path.

<?php
$path = "../upload/"; // upload path destination

if(($_FILES[ "resumefile" ]["size"] <90000)){
	if($_FILES[" resumefile" ]["error" ] > 0 ){
		echo "Erroe Code : ".$_FILES["resumefile"]["error" ];
	} else {
		//move_uploaded_ file($_FILES[ "resumefile" ]
["tmp_name" ],"upload\\".$ _FILES["resumefile"]["name" ]);
		move_uploaded_ file($_FILES[ "resumefile" ]
["tmp_name" ],$path.$ _FILES["resumefile"]["name" ]); // Modified code
	}
}
?>

Hope his will solve your problem. If still got problem, you can 
contact me.

Regard,


Fajar Dhumadi

--- In php-objects@xxxxxxxxxxxxxxx, amit choure <paragchaure@...> 
wrote:
>
> hi all 
> I have script of file uploading it works in Linux/Unix server but 
this script is not working at windows server .
> There is any method or changes in script?
> 
> Please help me 
> 
> with regards
> Parag
> 
> 
> 
> 
>       Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/
> 
> [Non-text portions of this message have been removed]
>



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux