Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/07/2009, 22:18
iovan
 
Fecha de Ingreso: septiembre-2007
Ubicación: PyRoot
Mensajes: 1.515
Antigüedad: 16 años, 7 meses
Puntos: 188
Respuesta: Impedir subir extenciones

estas equivocado el php si es text/php

Puedes comprobarlo tu mismo con este script

Código PHP:
<?php
ini_set
('memory_limit','200M');

if (isset(
$_POST['enviar']))
{
   
$file_type $_FILES['archivo']['type'];
   echo 
"<br>El archivo es tipo:".$file_type."<br>";
}

?>
<html>
<head>
</head>

<body>
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="archivo" />
<input type="submit" name="enviar" value="subir" />
</form>
</body>
</html>
__________________
Si quieres agradecer el triangulo obscuro de la parte derecha debes presionar +.