a pagina onde ta o form
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form name="form1" enctype="multipart/form-data" method="post" action="up.php"> <p> <input type="file" name="file"> </p> <p> <input type="submit" name="Submit" value="Submit"> </p> </form> </body> </html>
agora o up.php onde ta o comando
<?php
$dest="http://www.buscou.net/up/arquivos";
$file=$_POST['file'];
if(!move_uploaded_file($file, $dest)) {
echo "negada pelo servidor tente novamente";
}
else
{
echo "enviada com sucesso!";
}
?>pq nao funciona?
o arquivo nao vai para pasta???











