Si os soy sincero, me temo que estoy en punto muerto con este error.
El error que me sale es el siguiente:
Código:
Mi código es este:Warning: Cannot modify header information - headers already sent by (output started at /homez.221/pensares/www/download.php:1) in /homez.221/pensares/www/download.php on line 10 Warning: Cannot modify header information - headers already sent by (output started at /homez.221/pensares/www/download.php:1) in /homez.221/pensares/www/download.php on line 11 Warning: filesize() [function.filesize]: Stat failed for ups/tubeespana.rar (errno=2 - No such file or directory) in /homez.221/pensares/www/download.php on line 12 Warning: Cannot modify header information - headers already sent by (output started at /homez.221/pensares/www/download.php:1) in /homez.221/pensares/www/download.php on line 12 Warning: readfile(ups/tubeespana.rar) [function.readfile]: failed to open stream: No such file or directory in /homez.221/pensares/www/download.php on line 13
Código:
El archivo "conexion.php" es este:<? require("contenido/conexion.php"); $select = mysql_query('SELECT * FROM yawdes_archivos WHERE ID='.$_GET['id']); $not=mysql_fetch_array($select); if($not['Bloq']!=1) { $enlace = 'ups/'.$not['Ruta']; header ("Content-Disposition: attachment; filename=".$not['Ruta']." "); header ("Content-Type: application/octet-stream"); header ("Content-Length: ".filesize($enlace)); readfile($enlace); } else { ?> <div id="login" class="shadow"> <div style="margin-left:25px; padding-top:25px;"> Imposible comenzar la descarga. El archivo está bloqueado. </div> </div> <? } ?>
Código:
<?php $conectar = mysql_connect("xxxxx", "xxxxx", "xxxxx"); $base_datos = mysql_select_db("xxxxx", $conectar); ?>