Come mai qndo inserisco il code x avere le news dell'ansa nn mi funziona nel blocco ke creo?
sò ke è un problema di altervista xkè altri su altri server lo hanno messo posso sapere il perkè?
ora vi posto il code!
[code:1:5642412d6f]<?php
/************************************************** **********************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Notizie ANSA Italia v 1.0 */
/* ==================== */
/* */
/* Copyright © 2003 da Tiziano S. <tiziano@computerassistenza.it> */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/* */
/************************************************** **********************/
if (eregi("block-Ansa_Italia.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
$webpage = "http://www.ansa.it/rubriche/italia/italia.html";
$fp = fopen ($webpage, "r");
$pagina = "";
while (! feof($fp))
{
$riga = fgets($fp,1024);
$pagina = $pagina.$riga;
}
$contenuto=split("le News di Oggi",$pagina);
$content_1=split("<\!-",$contenuto[1]);
$content_2=split("->",$content_1[1]);
$content_3=split("<\!-",$content_2[1]);
$content_3[0]=str_replace("class= \"testopiccolo\"","",$con tent_3[0]);
$content_3[0]=str_replace("class= \"menu\"","",$content_3&# 91;0]);
$content_3[0]=str_replace("class= \"testopiccolo\"","",$con tent_3[0]);
$content_3[0]=preg_replace("/\s?width\s?=\s?\"([0-9]+)\"/","",$content_3[0]);
$content_3[0]=preg_replace("/\s?height\s?=\s?\"([0-9]+)\"/","",$content_3[0]);
$content_3[0]=str_replace("a href=\"","a target=\"_blank\" href=\"http://www.ansa.it/rubriche/italia/",$content_3[0]);
$content_3[0]=str_replace("img src=\"/mainimages/tria.gif","img src=\"templates/default/images/ansa_img.gif",$content_3[0]);
$content_3[0]=preg_replace("/(\d+)-(\d+)-(\d+)\s+/","\\3/\\2/\\1 h. ",$content_3[0]);
$content .= "<A name=scrollingCode></A><MARQUEE behavior=\"scroll\" loop=\"-1\" align=\"center\" height=\"150\" direction=\"up\" " .
"scrollamount=\"2\" hspace=\"0\" vspace=\"0\" scrolldelay=\"90\" bgcolor=\"#FFFFFF\" onmouseover='this.stop()' " .
"onmouseout='this.start()'><tab le width=\"138\"><tr><td>\n& quot;;
$content .= "$content_3[0]\n";
$content .= "</td></tr></table></MARQUEE>\n";
$content .= "<div align=\"center\">\n";
$content .= "<table border=\"1\" cellpadding=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#808080\" id=\"table1\" bgcolor=\"#F4F4F4\" width=\"100%\">\n";
$content .= "<tr>\n";
$content .= "<td>\n";
$content .= "<p align=\"center\">\n";
$content .= "<font color=\"#808080\">© Copyright ANSA Tutti i diritti riservati<br>\n";
$content .= "<a target = \"_blank\" href=\"http://www.ansa.it/\">http://www.ansa.it</a></font></p></td>\n";
$content .= "</tr>\n";
$content .= "</table>\n";
$content .= "</div>\n";
?>[/code:1:5642412d6f]
Attendo risp