Pessoal, Faz um mes atras, migramos no servidor para o PHP 5. Até então não consigo fazer mais upload de arquivos. Segue abaixo o código: upload.htm <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Upload de Imagens</title>
</head>
<link rel="stylesheet" href="estilo.css">
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
<table width="375" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<input type="file" name="arquivo"> </td>
</tr>
<tr>
<td>
<input type="submit" value="Enviar">
</td>
</tr>
</table>
</form>
</body>
</html>
upload.php
<?php
if (isset($arquivo))
{
$nome = rand(00,9999);
$dir="/arquivos/";
if (is_uploaded_file($arquivo))
{ move_uploaded_file($arquivo,$dir.$nome.$arquivo_name);
echo "Enviado<br>";
}else{
echo "erro";
}
}
?> Preciso de um help pessoal! PLEASE!