<html>
<head>
<title>Subiendo una nueva foto</title>
</head>
<body>
<h1>Subiendo un archivo</h1>
<br>
<div align="center"><?php
if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
copy($HTTP_POST_FILES['userfile']['tmp_name'], "http://localhost/puebaimagenes/imagenes");
} else {
echo " Filename: " . $HTTP_POST_FILES['userfile']['name'];
}
move_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'], "http://localhost/puebaimagenes/imagenes");
?><br>
<br>
<a href="index.php">Volver</a>
<br>
</div>
</body>
</html>
me envia el siguiente error:
Warning: copy(http://localhost/puebaimagenes/imagenes): failed to open stream: HTTP wrapper does not support writeable connections. in c:\appserv\www\pruebaimagenes\subearchivo.php on line 16
Warning: move_uploaded_file(http://localhost/puebaimagenes/imagenes): failed to open stream: HTTP wrapper does not support writeable connections. in c:\appserv\www\pruebaimagenes\subearchivo.php on line 21Warning: move_uploaded_file(): Unable to move 'E:\WINNT\TEMP\phpD.tmp' to 'http://localhost/puebaimagenes/imagenes' in c:\appserv\www\pruebaimagenes\subearchivo.php on line 21
Un saludo.
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)