Allora, ho un problema con Aruba (e quando mai!): dopo quasi 4 mesi si sono accorti che una pagina del mio sito creava problemi al loro server (io dico che si sono accorti che gli occupava troppa banda, visto l'elevato numero di accessi giusto a quella pagina, la più visitata di tutto il sito) e l'hanno rimossa.
Qualcuno sarebbe così gentile da analizzarla e dirmi se può creare ste cose che dicono loro?
"Nel caso gli script e i programmi contenuti all'interno di un dominio effettuino richieste non corrette, creando loop di processore o exceptions che crashano i servizi o la macchina, innescando loop di connessione a database, apertura e chiusura ridondante di processi ecc. il servizio web relativo al dominio viene fermato."
La pagina è questa (naturalmente oscuro alcune cosette...
):
codice:
<? include("FILE DI CONFIGURAZIONE");
$query="SELECT * FROM band WHERE (id='$id') AND (user_active='1')"; //selezione band_id dalla tabella band //Selezione dati della band
$result=mysql_query ($query, $db);
$utenti=mysql_fetch_object($result);
$titolo=stripslashes("- $utenti->nomegruppo");
$query="SELECT num_voti,media_voti FROM band_votes WHERE id_band='$id'"; //Selezione media voti e numero votanti per la band
$result1=mysql_query($query, $db) or die(mysql_error()."Selezione voto non riuscita!");
$votazioni=mysql_fetch_object($result1) or die(mysql_error()."Selezione voto non riuscita!");
include("../template/header.php"); ?>
<script type="text/javascript">
function news(str) {
searchWin = window.open(str,'news','scrollbars=yes,resizable=no,width=420,height=300,status=no,location=no,toolbar=no');
// searchWin.refer = self;
}
</script>
<table width="<? echo"$pagetable"; ?>" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="120" valign="top" bgcolor="#0066FF">
<? include("../template/menu.php");
include("../template/banner_sx.php");
?>
<p align="center">CLASSIFICHE</p>
<p align="center"> </p>
</td>
<td valign="top" bgcolor="#FEFB89"> <table width="100%" cellpadding="0" cellspacing="2">
<tr>
<td width="35%" height="256" valign="top">
<table class="bandtable" width="100%" border="1" cellpadding="0" cellspacing="1">
<tr>
<td class="bandtable1" height="26"><? echo stripslashes("$utenti->nomegruppo"); ?></td>
</tr>
<tr>
<td class="bandtable"><? echo $utenti->genere ?>
<? if($utenti->altrogenere) echo stripslashes("
$utenti->altrogenere"); ?></td>
</tr>
<tr>
<td class="bandtable"><? echo stripslashes("$utenti->citta"); ?> <? if($utenti->nazione) echo '('.$utenti->nazione.')'; ?></td>
</tr>
<tr>
<td class="bandtable"><? echo $utenti->anno ?></td>
</tr>
<? if($utenti->url) echo"<tr>
<td class=\"bandtable\"><a href=\"http://$utenti->url\" target=\"_blank\">Visita il sito</a></td>
</tr>"; ?>
<tr>
<td class="bandtable">Contatta</td>
</tr>
<? if($utenti->news) echo"<tr>
<td class=\"bandtable\"><a href=\"javascript:news('news.php?id=$id')\">News</a></td>
</tr>"; ?>
<tr>
<td align="center" class="bandtable">
<form name="form1" id="form1" method="post" action="voto_band.php?id=<? echo $id ?>">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="20" align="center">Vota questa band:</td>
</tr>
<tr>
<td align="center" valign="bottom">
<select name="select">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select> <input type="submit" name="Voto" id="Voto" value="Vota" />
</td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td height="20" align="center" class="bandtable">Media voti: <? echo $votazioni->media_voti ?>
Su: <? echo $votazioni->num_voti ?> voti</td>
</tr>
</table>
</td>
<td width="65%" valign="top">
<table class="bandtable" width="100%" border="1" cellpadding="2" cellspacing="2">
<tr>
<td class="bandtable"><? if($utenti->voce) echo stripslashes("Voce: $utenti->voce
");
if($utenti->chitarra1) echo stripslashes("Chitarra: $utenti->chitarra1
");
if($utenti->chitarra2) echo stripslashes("Chitarra: $utenti->chitarra2
");
if($utenti->bassista) echo stripslashes("Basso: $utenti->bassista
");
if($utenti->tastiera) echo stripslashes("Tastiera: $utenti->tastiera
");
if($utenti->batteria) echo stripslashes("Batteria: $utenti->batteria
");
if($utenti->altrostrumento1)echo stripslashes("$utenti->altrostrumento1: $utenti->altronome1
");
if($utenti->altrostrumento2)echo stripslashes("$utenti->altrostrumento2: $utenti->altronome2
");
if($utenti->altrostrumento3)echo stripslashes("$utenti->altrostrumento3: $utenti->altronome3"); ?></td>
</tr>
<tr>
<td class="bandtable"><?
include("../template/repl_char.php");
echo stripslashes(nl2br("$utenti->descrizione")); ?></td>
</tr>
<? if($utenti->influenze) echo stripslashes("<tr>
<td class=\"bandtable\">Influenze musicali: $utenti->influenze</td>
</tr>");
if($utenti->nomedisco) echo stripslashes("<tr>
<td class=\"bandtable\">Dischi: $utenti->nomedisco</td>
</tr>");
if($utenti->link1) echo stripslashes("<tr>
<td class=\"bandtable\"><img src=\"../images/icon_audio.gif\" alt=\"Ascolta\" /> <a href=\"http://$utenti->link1\">$utenti->titolo1</a></td>
</tr>");
if($utenti->link2) echo stripslashes("<tr>
<td class=\"bandtable\"><img src=\"../images/icon_audio.gif\" alt=\"Ascolta\" /> <a href=\"http://$utenti->link2\">$utenti->titolo2</a></td>
</tr>");
?>
</table>
</td>
</tr>
</table>
</p>
<table width="100%" cellspacing="3" cellpadding="1">
<tr align="center">
<td class="bandtable">Alternative/Punk/Reggae</td>
<td class="bandtable">Electronica/Dance</td>
<td class="bandtable">Metal/Heavy Rock</td>
<td class="bandtable">Pop</td>
</tr>
<tr align="center">
<td class="bandtable">Rock</td>
<td class="bandtable">Hip Hop/R&B/Soul</td>
<td class="bandtable">Varia</td>
<td class="bandtable">Elenco di tutte le band</td>
</tr>
</table> </td>
</tr>
</table>
<? include("../template/footer.php");?>
Può essere che alcune cose siano obsolete, ma fin'ora non avevano mai creato nessun genere di problema e tutte le pagine del sito sono più o meno così (con meno query).
Grazie a chiunque mi aiuterà!