Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/05/2007, 10:31
Avatar de el cirujano
el cirujano
 
Fecha de Ingreso: mayo-2003
Ubicación: Frente al PC
Mensajes: 609
Antigüedad: 21 años
Puntos: 3
Re: Pagina con Script para descarga que no muestra texto

<?php
$f = $_GET["f"];
$usuario = $_GET["u"];
$dir= "directorio/$usuario/";
$enlace = $dir.$f;
if(strpos($f,"/")!==false){
die("No puedes navegar por otros directorios");
}
readfile($enlace);
header("Content-Disposition: attachment; filename=".$f."\n");
header("Content-type: application/octet-stream");
header("Content-Length: ".filesize($enlace));
?>

Pruebalo asi
__________________
CSS2 + AJAX + PHP + MySQL, una mezcla sin competencia!!!!!!