Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/10/2005, 19:34
Avatar de Reynier
Reynier
 
Fecha de Ingreso: noviembre-2002
Ubicación: Por ahí en algún sitio
Mensajes: 1.844
Antigüedad: 21 años, 5 meses
Puntos: 1
Pues ...

Yo tambien ando interesado en el tema de creación de RSS pero no logro hacer mi RSS. Yo he logrado crear la estructura correcta del fichero RSS haciendo uso de PHP. Miren el código:
Código PHP:
 # RSS File
    $res = "";
    $res.= "<?xml version="1.0\" encoding=\"UTF-8\"?>\n";
    
$res.= "<rss version=\"2.0\">\n";
    
$res.= "\t<channel>\n";
    
$res.= "\t\t<title><![CDATA[RSS Portal de los Joven Club de Computaci&oacute;n y Electr&oacute;nica de Granma]]></title>\n";
    
$res.= "\t\t<description><![CDATA[RSS Portal de los Joven Club de Computaci&oacute;n y Electr&oacute;nica de Granma]]></description>\n";
    
$res.= "\t\t<language>es-es</language>\n";
    
$res.= "\t\t<generator>RSS Portal JClub Granma</generator>\n";
    if (
$rscantidad[0] > 0) {
        
$fecha_noticias$db->SQLDate('d M Y - h:i:s A''FechaN');
        
$noticia       $db->Execute("SELECT IDN, IDC, $fecha_noticias, TituloN, DescN, AutorN FROM noticia WHERE (NACtiva<>0) ORDER BY FechaN DESC");
        while (
$rs=$noticia->fetchRow()) {
            
$res.="\t\t<item>\n";
            
$res.="\t\t\t<title><![CDATA[" stripslashes($rs['TituloN']) . "]]></title>\n";
            
// $res.="\t\t\t<description><![CDATA[" . stripslashes($rs['DescN']) . "]]></description>\n";
            
$res.="\t\t\t<pubDate>" stripslashes($fecha_noticias) . "</pubDate>\n";
            
$res.="\t\t\t<link>" $PageAdress "&amp;IDC=" $rs['IDC'] . "&amp;IDN=" $rs['IDN'] . "</link>\n";
            
$res.="\t\t\t<author>" stripslashes($rs["AutorN"]) . "</author>\n";
            
$res.="\t\t</item>\n";
        }
    }
    
$res.= "\t</channel>\n";
    
$res.= "</rss>\n";
    
$actual =date("Ymd");
    
$handler=fopen("../noticias-" $actual ".xml"'w+');
    if (!
fputs($handler$res)) {
        
$tpl->assign("msg","No se pudo crear el RSS");
    } else {
        
$tpl->assign("msg","El fichero RSS ha sido creado satisfactoriamente");
    }
    
fclose($handler);
bien ahora el problema que tengo es que no se como hacer un fichero XLS para poder dar estilo a ese RSS. Me dan alguna ayuda ??

Salu2
__________________
Ing. Reynier Pérez Mira