Bueno tengo un problema cuando quiero descargar el archivo recien creado.
al momento de descargar el archivo me sale como si fuera html y al final del archivo sale... con este codigo html
Que puedo hacer para que me descargue el archivo limpio recien creado, he visto y el archivo no lleva esas lineas.
Código HTML:
Ver original<!-- Hosting24 Analytics Code -->
<script type="text/javascript" src="http://stats.hosting24.com/count.php"></script> <!-- End Of Analytics Code -->
Código PHP:
Ver original<?php
$channel=$_GET['ch'];
$profile=$_GET['pf'];
$list ="http://xxx.xxx.xxx.xxx/live/ch".$channel."/"."PROFILE".$profile.".m3u8";
$file = fopen($list, "r"); $i = 0;
if("#"!=$o[0])
{
echo "no existe";
return 0;
}
$file = fopen($list, "r"); $bandera = true;
$name = "lista-".$channel."-".$profile.".m3u8";
$gestor = fopen("$name", "w"); {
if("P" == $cad[0])
{
fwrite($gestor,"http://xxx.xxx.xxx.xxx/live/ch".$channel."/".$cad); }
else
}
header("Content-Description: File Transfer"); header("Content-Type application/x-mpegURL "); header('Content-Disposition: attachment; filename="lista.m3u8"');
?>