Ahora logre un mensaje de error, pero no entiendo por que me dice permiso denegado.
Este es el script de prueba:
Código PHP:
<?php
if ($_GET['accion']=='subir')
move_uploaded_file($_FILES['foto']['tmp_name'],'temp/x.jpg');
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="x.php?accion=subir" method="post" enctype="multipart/form-data" name="form1">
<input name="foto" type="file" id="foto">
<input type="submit" name="Submit" value="Enviar">
</form>
</body>
</html>
Y este es el error
Warning: move_uploaded_file(temp/x.jpg) [function.move-uploaded-file]: failed to create stream: Permission denied in C:\Inetpub\wwwroot\sitio\x.php on line 4
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINNT\TEMP\php6A.tmp' to 'temp/x.jpg' in C:\Inetpub\wwwroot\sitio\x.php on line 4
AYUDA PLEASEEEEEEEE