标签云

微信群

扫码加入我们

WeChat QR Code

I'm trying to upload a file but i doesnt work:Usefull Info: Running IIS Express (with PHP 5.3) - Windows 7 Professional 32 BitsCode:move_uploaded_file($_FILES["imagem"]["name"], "/images/" . $_FILES["imagem"]["name"]) or die ("Error:".print_r($_FILES));It Prints: Array ( [imagem] => Array ( [name] => Chrysanthemum.jpg [type] => image/jpeg [tmp_name] => C:\Windows\Temp\php3D85.tmp [error] => 0 [size] => 879394 ) )I'm sure the path is correct and i also did chmod() to set permissions but still, doesn't upload.Any sugestions?


the first parameter should be $_FILES['imagem']['tmp_name'] and try using ./images/.

2019年05月23日53分23秒