<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Ptm Forum - Tutti i forum]]></title>
		<link>http://ptm.altervista.org/forum/</link>
		<description><![CDATA[Ptm Forum - http://ptm.altervista.org/forum]]></description>
		<pubDate>Fri, 27 Nov 2009 17:23:23 +0100</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Schedine calcio]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Schedine_calcio</link>
			<pubDate>Mon, 23 Nov 2009 17:44:45 +0100</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Schedine_calcio</guid>
			<description><![CDATA[Salve, ho un blog che parla di calcio, notizie ecc... tutto sul calcio <img class="postimage" src="http://ptm.altervista.org/forum/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /> Per non annoiare i visitatori volevo creare una pagina "admin" e una delle schedine dove visualizzavi le partite..<br />
<br />
Allora cerco di spiegarmi nei dettagli il più possibile.. Ogni sabato e domenica ci sono le partite... <br />
<br />
<span style="color: #FF0000;"><span style="font-size: large;"><span style="font-weight: bold;">PAGINA ADMIN</span></span></span><br />
Preview: <br />
<img class="postimage" src="http://i45.tinypic.com/ayx1yv.png" border="0" alt="[Immagine: ayx1yv.png&#93;" /><br />
Qui io inserisco le partite e tramite un button le partite vengono scritte nell'altra pagina.. <br />
<br />
<span style="color: #FF0000;"><span style="font-size: large;"><span style="font-weight: bold;">PAGINA SCHEDINE</span></span></span><br />
In alto il regolamento per giocare.. che scriverò io ovviamente.. Tu scrivi solamente "Qui ci sta il regolamento"<br />
Sotto di questo un fieldset con scritto "Scegli squadre" e dentro questo:<br />
<img class="postimage" src="http://i47.tinypic.com/2jeejir.png" border="0" alt="[Immagine: 2jeejir.png&#93;" /><br />
Ho fatto un piccolo esempio con la prima partita..<br />
<br />
<span style="font-weight: bold;">Per vincere</span> bisogna azzeccare 2 partite con il risultato preciso, nelle textbox ci va scritto il risultato che si pensa.<br />
Il radiobutton al centro su 10 partite possono essere selezionati 2.. <br />
Le textbox devono essere disabilitate tutte e quando si clicca sul radiobutton della stesa riga si abilitano per scriverci i risultati..<br />
Squadra1 = Squadra inserita di la nella prima textbox<br />
Squadra2= Squadra inserita di la nella seconda textobox<br />
<br />
Scritte le 10 partite.. sotto apriamo un'altro fieldset e scriviamo "Conferma schedina"<br />
<br />
Qui dentro mettiamo 3 banner pubblciitari e al click su uno di questi venga inviata un'email a web@calciogratis.com e nello stesso tempo aperta la pubblicità(ecco il guadagno) con scritto le partite che abbiamo deciso di giocare.. <br />
<br />
<span style="text-decoration: underline;">Ovviamente i controlli se si inseriscono valori negativi o non si inserisce nessun valore fammelo solo sul primo che poi io faccio il copia incolla <img class="postimage" src="http://ptm.altervista.org/forum/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /></span><br />
<br />
<br />
<span style="font-size: x-large;"><span style="font-weight: bold;">Me la riusciresti a fare perfavore? So che è una cosa un bel pò difficile però .... se ho guadagni.. arrivato a 10/20 € te li do a te <img class="postimage" src="http://ptm.altervista.org/forum/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /></span></span><br />
<br />
<span style="font-size: xx-small;">N.B. Questa idea è esclusivamente via e nessuno me la deve copiare <img class="postimage" src="http://ptm.altervista.org/forum/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /></span>]]></description>
			<content:encoded><![CDATA[Salve, ho un blog che parla di calcio, notizie ecc... tutto sul calcio <img class="postimage" src="http://ptm.altervista.org/forum/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /> Per non annoiare i visitatori volevo creare una pagina "admin" e una delle schedine dove visualizzavi le partite..<br />
<br />
Allora cerco di spiegarmi nei dettagli il più possibile.. Ogni sabato e domenica ci sono le partite... <br />
<br />
<span style="color: #FF0000;"><span style="font-size: large;"><span style="font-weight: bold;">PAGINA ADMIN</span></span></span><br />
Preview: <br />
<img class="postimage" src="http://i45.tinypic.com/ayx1yv.png" border="0" alt="[Immagine: ayx1yv.png]" /><br />
Qui io inserisco le partite e tramite un button le partite vengono scritte nell'altra pagina.. <br />
<br />
<span style="color: #FF0000;"><span style="font-size: large;"><span style="font-weight: bold;">PAGINA SCHEDINE</span></span></span><br />
In alto il regolamento per giocare.. che scriverò io ovviamente.. Tu scrivi solamente "Qui ci sta il regolamento"<br />
Sotto di questo un fieldset con scritto "Scegli squadre" e dentro questo:<br />
<img class="postimage" src="http://i47.tinypic.com/2jeejir.png" border="0" alt="[Immagine: 2jeejir.png]" /><br />
Ho fatto un piccolo esempio con la prima partita..<br />
<br />
<span style="font-weight: bold;">Per vincere</span> bisogna azzeccare 2 partite con il risultato preciso, nelle textbox ci va scritto il risultato che si pensa.<br />
Il radiobutton al centro su 10 partite possono essere selezionati 2.. <br />
Le textbox devono essere disabilitate tutte e quando si clicca sul radiobutton della stesa riga si abilitano per scriverci i risultati..<br />
Squadra1 = Squadra inserita di la nella prima textbox<br />
Squadra2= Squadra inserita di la nella seconda textobox<br />
<br />
Scritte le 10 partite.. sotto apriamo un'altro fieldset e scriviamo "Conferma schedina"<br />
<br />
Qui dentro mettiamo 3 banner pubblciitari e al click su uno di questi venga inviata un'email a web@calciogratis.com e nello stesso tempo aperta la pubblicità(ecco il guadagno) con scritto le partite che abbiamo deciso di giocare.. <br />
<br />
<span style="text-decoration: underline;">Ovviamente i controlli se si inseriscono valori negativi o non si inserisce nessun valore fammelo solo sul primo che poi io faccio il copia incolla <img class="postimage" src="http://ptm.altervista.org/forum/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /></span><br />
<br />
<br />
<span style="font-size: x-large;"><span style="font-weight: bold;">Me la riusciresti a fare perfavore? So che è una cosa un bel pò difficile però .... se ho guadagni.. arrivato a 10/20 € te li do a te <img class="postimage" src="http://ptm.altervista.org/forum/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /></span></span><br />
<br />
<span style="font-size: xx-small;">N.B. Questa idea è esclusivamente via e nessuno me la deve copiare <img class="postimage" src="http://ptm.altervista.org/forum/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[AIUTO&#93; JilMail non funziona]]></title>
			<link>http://ptm.altervista.org/forum/Thread_AIUTO_JilMail_non_funziona</link>
			<pubDate>Fri, 20 Nov 2009 19:42:15 +0100</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_AIUTO_JilMail_non_funziona</guid>
			<description><![CDATA[Salve, avrei un problema con la piattaforma di JiMail.. Ptm a già la piattaforma, chi riesce può provare a hostarla nel suo spazio e dirmi che errore c'è?]]></description>
			<content:encoded><![CDATA[Salve, avrei un problema con la piattaforma di JiMail.. Ptm a già la piattaforma, chi riesce può provare a hostarla nel suo spazio e dirmi che errore c'è?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Icone accanto alle sezioni]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Icone_accanto_alle_sezioni</link>
			<pubDate>Tue, 10 Nov 2009 16:21:56 +0100</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Icone_accanto_alle_sezioni</guid>
			<description><![CDATA[Per fare in modo che accanto ad ogni sezione del proprio forum appaia una icona bisogna seguire una semplice procedura modificando alcuni template. Per prima cosa accedere al Pannello di Amministrazione nella sezione Template &amp; Temi -&gt; Template. Cliccare sul set di template che si desidera modificare ed eseguire le seguenti sostituzioni<br />
<br />
Template <span style="font-weight: bold;">forumbit_depth2_forum</span><br />
<br />
<span style="text-decoration: underline;">cerca</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="{&#36;bgcolor}" align="center" valign="top" width="1"&gt;&lt;img src="{&#36;theme['imgdir'&#93;}/{&#36;lightbulb['folder'&#93;}.gif" alt="{&#36;lightbulb['altonoff'&#93;}" title="{&#36;lightbulb['altonoff'&#93;}" class="ajax_mark_read" id="mark_read_{&#36;forum['fid'&#93;}" /&gt;&lt;/td&gt;</code></div></div>
<span style="text-decoration: underline;">aggiungi dopo</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="{&#36;bgcolor}" align="center" valign="top" width="1"&gt;&lt;img src="{&#36;theme['imgdir'&#93;}/icon_{&#36;forum['fid'&#93;}.png"&nbsp;&nbsp;title="" class="ajax_mark_read" /&gt;&lt;/td&gt;</code></div></div>
<br />
Template <span style="font-weight: bold;">forumbit_depth1_cat</span><br />
<br />
<span style="text-decoration: underline;">sostituisci</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="thead" colspan="5"&gt;</code></div></div>
<span style="text-decoration: underline;">con</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="thead" colspan="6"&gt;</code></div></div>
<br />
<span style="text-decoration: underline;">sostituisci</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="tcat" colspan="2"&gt;&lt;span class="smalltext"&gt;&lt;strong&gt;{&#36;lang-&gt;forumbit_forum}&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;</code></div></div>
<span style="text-decoration: underline;">con</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="tcat" colspan="3"&gt;&lt;span class="smalltext"&gt;&lt;strong&gt;{&#36;lang-&gt;forumbit_forum}&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;</code></div></div>
<br />
Template <span style="font-weight: bold;">forumdisplay_subforums</span><br />
<br />
<span style="text-decoration: underline;">sostituisci</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="thead" colspan="5" align="center"&gt;&lt;strong&gt;{&#36;lang-&gt;sub_forums_in}&lt;/strong&gt;&lt;/td&gt;</code></div></div>
<span style="text-decoration: underline;">con</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="thead" colspan="6" align="center"&gt;&lt;strong&gt;{&#36;lang-&gt;sub_forums_in}&lt;/strong&gt;&lt;/td&gt;</code></div></div>
<br />
<span style="text-decoration: underline;">cerca</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="tcat" width="2%"&gt;&amp;nbsp;&lt;/td&gt;</code></div></div>
<span style="text-decoration: underline;">aggiungi dopo</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="tcat" width="2%"&gt;&amp;nbsp;&lt;/td&gt;</code></div></div>
<br />
<br />
Ora nella cartella images inserire le icone che devono avere questo nome: icon_IDFORUM.png . Se si usa un template diverso da quello di default le immagine vanno inserite nella cartella images del tema che si ha appena modificato.]]></description>
			<content:encoded><![CDATA[Per fare in modo che accanto ad ogni sezione del proprio forum appaia una icona bisogna seguire una semplice procedura modificando alcuni template. Per prima cosa accedere al Pannello di Amministrazione nella sezione Template &amp; Temi -&gt; Template. Cliccare sul set di template che si desidera modificare ed eseguire le seguenti sostituzioni<br />
<br />
Template <span style="font-weight: bold;">forumbit_depth2_forum</span><br />
<br />
<span style="text-decoration: underline;">cerca</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="{&#36;bgcolor}" align="center" valign="top" width="1"&gt;&lt;img src="{&#36;theme['imgdir']}/{&#36;lightbulb['folder']}.gif" alt="{&#36;lightbulb['altonoff']}" title="{&#36;lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{&#36;forum['fid']}" /&gt;&lt;/td&gt;</code></div></div>
<span style="text-decoration: underline;">aggiungi dopo</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="{&#36;bgcolor}" align="center" valign="top" width="1"&gt;&lt;img src="{&#36;theme['imgdir']}/icon_{&#36;forum['fid']}.png"&nbsp;&nbsp;title="" class="ajax_mark_read" /&gt;&lt;/td&gt;</code></div></div>
<br />
Template <span style="font-weight: bold;">forumbit_depth1_cat</span><br />
<br />
<span style="text-decoration: underline;">sostituisci</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="thead" colspan="5"&gt;</code></div></div>
<span style="text-decoration: underline;">con</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="thead" colspan="6"&gt;</code></div></div>
<br />
<span style="text-decoration: underline;">sostituisci</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="tcat" colspan="2"&gt;&lt;span class="smalltext"&gt;&lt;strong&gt;{&#36;lang-&gt;forumbit_forum}&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;</code></div></div>
<span style="text-decoration: underline;">con</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="tcat" colspan="3"&gt;&lt;span class="smalltext"&gt;&lt;strong&gt;{&#36;lang-&gt;forumbit_forum}&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;</code></div></div>
<br />
Template <span style="font-weight: bold;">forumdisplay_subforums</span><br />
<br />
<span style="text-decoration: underline;">sostituisci</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="thead" colspan="5" align="center"&gt;&lt;strong&gt;{&#36;lang-&gt;sub_forums_in}&lt;/strong&gt;&lt;/td&gt;</code></div></div>
<span style="text-decoration: underline;">con</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="thead" colspan="6" align="center"&gt;&lt;strong&gt;{&#36;lang-&gt;sub_forums_in}&lt;/strong&gt;&lt;/td&gt;</code></div></div>
<br />
<span style="text-decoration: underline;">cerca</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="tcat" width="2%"&gt;&amp;nbsp;&lt;/td&gt;</code></div></div>
<span style="text-decoration: underline;">aggiungi dopo</span><br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;td class="tcat" width="2%"&gt;&amp;nbsp;&lt;/td&gt;</code></div></div>
<br />
<br />
Ora nella cartella images inserire le icone che devono avere questo nome: icon_IDFORUM.png . Se si usa un template diverso da quello di default le immagine vanno inserite nella cartella images del tema che si ha appena modificato.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[2 cose]]></title>
			<link>http://ptm.altervista.org/forum/Thread_2_cose</link>
			<pubDate>Sun, 08 Nov 2009 16:13:51 +0100</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_2_cose</guid>
			<description><![CDATA[1)mi dite come dividere le icone delle sezioni con una lina, come questo screen<br />
<img class="postimage" src="http://img84.imageshack.us/img84/6765/immagineyu.png" border="0" alt="[Immagine: immagineyu.png&#93;" /><br />
<br />
<br />
<br />
2) mi dite come far illuminare le icone al passaggio del mouse?]]></description>
			<content:encoded><![CDATA[1)mi dite come dividere le icone delle sezioni con una lina, come questo screen<br />
<img class="postimage" src="http://img84.imageshack.us/img84/6765/immagineyu.png" border="0" alt="[Immagine: immagineyu.png]" /><br />
<br />
<br />
<br />
2) mi dite come far illuminare le icone al passaggio del mouse?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Script...]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Script</link>
			<pubDate>Mon, 02 Nov 2009 22:15:53 +0100</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Script</guid>
			<description><![CDATA[Salve,<br />
<br />
Scusatemi se non m sono nemmeno presentato ma è davvero un grosso problema...! Allora io ho scritto dei file di registrazione...<br />
<div class="codeblock phpcodeblock"><div class="title">Codice PHP:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php&nbsp;<br /></span><span style="color: #007700">include</span><span style="color: #DD0000">"config.php"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;<br /></span>&lt;!DOCTYPE&nbsp;HTML&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;HTML&nbsp;4.01&nbsp;Transitional//EN"&nbsp;"http://www.w3.org/TR/html4/loose.dtd"&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;title&gt;HomePage&lt;/title&gt;<br />&lt;meta&nbsp;http-equiv="Content-Type"&nbsp;content="text/html;&nbsp;charset=iso-8859-1"&gt;<br />&lt;style&nbsp;type="text/css"&gt;<br />&lt;!--<br />.Stile1&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;font-size:&nbsp;36px;<br />&nbsp;&nbsp;&nbsp;&nbsp;font-weight:&nbsp;bold;<br />}<br />--&gt;<br />&lt;/style&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />&lt;p&nbsp;class="Stile1"&gt;<span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #007700">echo</span><span style="color: #DD0000">"&#36;sito"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">?&gt;<br /></span>&lt;/p&gt;<br /><span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #007700">include</span><span style="color: #DD0000">"menu.php"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">?&gt;</span>&lt;/p&gt;<br />&lt;p&gt;&amp;nbsp;&lt;/p&gt;<br />&lt;p&gt;<span style="color: #0000BB">&lt;?php&nbsp;<br />&#36;pg&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'pg'</span><span style="color: #007700">&#93;;<br />switch&nbsp;(</span><span style="color: #0000BB">&#36;pg</span><span style="color: #007700">)&nbsp;{<br />case(</span><span style="color: #0000BB">1</span><span style="color: #007700">):<br /></span><span style="color: #0000BB">?&gt;<br /></span>Benvenuti&nbsp;EnjoyMt2<br />Clicca&nbsp;&lt;a&nbsp;href="http://www.enjoymt2.altervsista.org/reg.php"&gt;QUI&lt;/a&gt;&nbsp;per&nbsp;registrarti.<br />Clicca&nbsp;&lt;a&nbsp;href="http://www.enjoymt2.altervsista.org/login.php"&gt;QUI&lt;/a&gt;&nbsp;per&nbsp;accedere.<br /><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">break;<br />case(</span><span style="color: #0000BB">2</span><span style="color: #007700">):<br /></span><span style="color: #0000BB">?&gt;<br /></span>Registrati&nbsp;compilando&nbsp;il&nbsp;form&nbsp;sottostante.&lt;br&gt;<br />&lt;form&nbsp;name="form1"&nbsp;method="post"&nbsp;action="reg.php"&gt;<br />&nbsp;&nbsp;&lt;p&gt;Username:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;name="username"&nbsp;type="text"&nbsp;maxlength="32"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Password:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;name="password"&nbsp;type="password"&nbsp;maxlength="32"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Ripeti&nbsp;Password:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;name="cpassword"&nbsp;type="password"&nbsp;maxlength="32"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Email:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;name="email"&nbsp;type="text"&nbsp;maxlength="255"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="submit"&nbsp;name="Submit"&nbsp;value="Registrati"&gt;&nbsp;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&lt;/form&gt;<br /><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">break;<br />case(</span><span style="color: #0000BB">3</span><span style="color: #007700">):<br /></span><span style="color: #0000BB">?&gt;<br /></span>Effettua&nbsp;il&nbsp;login&nbsp;compilando&nbsp;il&nbsp;modulo&nbsp;sottostante.<br />&lt;form&nbsp;name="form1"&nbsp;method="post"&nbsp;action="login.php"&gt;<br />&nbsp;&nbsp;&lt;p&gt;Username:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="text"&nbsp;name="username"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Password:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="password"&nbsp;name="password"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="submit"&nbsp;name="Submit"&nbsp;value="Login"&gt;&nbsp;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&lt;/form&gt;<br /><br /><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">break;<br />}<br /></span><span style="color: #0000BB">?&gt;<br /></span>&lt;/p&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;&nbsp;<br /></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">Codice PHP:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #007700">include&nbsp;</span><span style="color: #DD0000">'config.php'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'username'</span><span style="color: #007700">&#93;;<br /></span><span style="color: #0000BB">&#36;password&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'password'</span><span style="color: #007700">&#93;;<br /></span><span style="color: #0000BB">&#36;cpassword&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'cpassword'</span><span style="color: #007700">&#93;;<br /></span><span style="color: #0000BB">&#36;email&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'email'</span><span style="color: #007700">&#93;;<br /><br /></span><span style="color: #0000BB">&#36;db_query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;*&nbsp;FROM&nbsp;utenti&nbsp;WHERE&nbsp;username&nbsp;=&nbsp;'&#36;username'"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;res&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;db_query</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;conn</span><span style="color: #007700">)&nbsp;or&nbsp;die(</span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">&#36;num_rows&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;res</span><span style="color: #007700">);<br /><br />if(</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">==</span><span style="color: #0000BB">NULL</span><span style="color: #007700">|</span><span style="color: #0000BB">&#36;password</span><span style="color: #007700">==</span><span style="color: #0000BB">NULL</span><span style="color: #007700">|</span><span style="color: #0000BB">&#36;email</span><span style="color: #007700">==</span><span style="color: #0000BB">NULL</span><span style="color: #007700">)&nbsp;{<br />echo&nbsp;</span><span style="color: #DD0000">"Tutti&nbsp;i&nbsp;campi&nbsp;sono&nbsp;obbligatori,&nbsp;&lt;a&nbsp;href='index.php?pg=2'&gt;Torna&nbsp;Indietro&lt;/a&gt;"</span><span style="color: #007700">;<br />exit();<br />}<br />if(</span><span style="color: #0000BB">&#36;num_rows</span><span style="color: #007700">!=</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br />echo&nbsp;</span><span style="color: #DD0000">"Username&nbsp;già&nbsp;presente&nbsp;nel&nbsp;database,&nbsp;&lt;a&nbsp;href='index.php?pg=2'&gt;Torna&nbsp;Indietro&lt;/a&gt;"</span><span style="color: #007700">;<br />exit();<br />}<br />if(</span><span style="color: #0000BB">&#36;password</span><span style="color: #007700">!=</span><span style="color: #0000BB">&#36;cpassword</span><span style="color: #007700">)&nbsp;{<br />echo&nbsp;</span><span style="color: #DD0000">"Le&nbsp;password&nbsp;non&nbsp;coincidono,&nbsp;&lt;a&nbsp;href='index.php?ph=2'&gt;Torna&nbsp;Indietro&lt;/a&gt;"</span><span style="color: #007700">;<br />exit();<br />}<br /><br /></span><span style="color: #0000BB">&#36;query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"INSERT&nbsp;INTO&nbsp;utenti&nbsp;(username,&nbsp;password,&nbsp;email)&nbsp;VALUES&nbsp;('&#36;username','&#36;password','&#36;email')"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query</span><span style="color: #007700">)&nbsp;or&nbsp;die(</span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">());<br />echo</span><span style="color: #DD0000">"Registrazione&nbsp;effettuata.&nbsp;Esegui&nbsp;il&nbsp;login&nbsp;da&nbsp;&lt;a&nbsp;href='index.php?pg=3'&gt;QUI&lt;/a&gt;."</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">Codice PHP:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br />&#36;db_host&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;db_user&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"*****"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;db_pass&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"*****"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;db_name&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"*****"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;conn&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;db_host</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;db_user</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;db_pass</span><span style="color: #007700">)&nbsp;or&nbsp;die&nbsp;(</span><span style="color: #DD0000">'Errore&nbsp;connessione&nbsp;:'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">mysql_select_db</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;db_name</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;conn</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">&#36;sito&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Registrazione&nbsp;EnjoyMt2"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
Allora fino a qui tutto normale... Il problema viene quando io ho hostato tutto su altervista.. Ma il database che io vado ad usare è quello che ho hostato sul mio pc.... Quindi se un utente si registra deve andare a finire nel mio database.... Se inserisco l'ip del database (in questo caso un ip hamachi) mi da questo errore "Errore connessione :Lost connection to MySQL server during query"<br />
<br />
Se invece inserisco localhost a posto dell'ip mi dice "No database selected" Se invece inserisco dati di altervista funziona...! Sono in crisi <br />
<br />
Questo è il primo problema <img class="postimage" src="http://ptm.altervista.org/forum/images/smilies/mysmiles/xd.gif" style="vertical-align: middle;" border="0" alt="xD" title="xD" /><br />
<br />
Ora ho un piccolo dubbio... Come creare uno script php che veda gli utenti registrati per poi bannarli dal database mysql? (questo non è molto importante più priorità al primo...)<br />
<br />
Grazie in anticipo!]]></description>
			<content:encoded><![CDATA[Salve,<br />
<br />
Scusatemi se non m sono nemmeno presentato ma è davvero un grosso problema...! Allora io ho scritto dei file di registrazione...<br />
<div class="codeblock phpcodeblock"><div class="title">Codice PHP:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php&nbsp;<br /></span><span style="color: #007700">include</span><span style="color: #DD0000">"config.php"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;<br /></span>&lt;!DOCTYPE&nbsp;HTML&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;HTML&nbsp;4.01&nbsp;Transitional//EN"&nbsp;"http://www.w3.org/TR/html4/loose.dtd"&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;title&gt;HomePage&lt;/title&gt;<br />&lt;meta&nbsp;http-equiv="Content-Type"&nbsp;content="text/html;&nbsp;charset=iso-8859-1"&gt;<br />&lt;style&nbsp;type="text/css"&gt;<br />&lt;!--<br />.Stile1&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;font-size:&nbsp;36px;<br />&nbsp;&nbsp;&nbsp;&nbsp;font-weight:&nbsp;bold;<br />}<br />--&gt;<br />&lt;/style&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />&lt;p&nbsp;class="Stile1"&gt;<span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #007700">echo</span><span style="color: #DD0000">"&#36;sito"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">?&gt;<br /></span>&lt;/p&gt;<br /><span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #007700">include</span><span style="color: #DD0000">"menu.php"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">?&gt;</span>&lt;/p&gt;<br />&lt;p&gt;&amp;nbsp;&lt;/p&gt;<br />&lt;p&gt;<span style="color: #0000BB">&lt;?php&nbsp;<br />&#36;pg&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'pg'</span><span style="color: #007700">];<br />switch&nbsp;(</span><span style="color: #0000BB">&#36;pg</span><span style="color: #007700">)&nbsp;{<br />case(</span><span style="color: #0000BB">1</span><span style="color: #007700">):<br /></span><span style="color: #0000BB">?&gt;<br /></span>Benvenuti&nbsp;EnjoyMt2<br />Clicca&nbsp;&lt;a&nbsp;href="http://www.enjoymt2.altervsista.org/reg.php"&gt;QUI&lt;/a&gt;&nbsp;per&nbsp;registrarti.<br />Clicca&nbsp;&lt;a&nbsp;href="http://www.enjoymt2.altervsista.org/login.php"&gt;QUI&lt;/a&gt;&nbsp;per&nbsp;accedere.<br /><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">break;<br />case(</span><span style="color: #0000BB">2</span><span style="color: #007700">):<br /></span><span style="color: #0000BB">?&gt;<br /></span>Registrati&nbsp;compilando&nbsp;il&nbsp;form&nbsp;sottostante.&lt;br&gt;<br />&lt;form&nbsp;name="form1"&nbsp;method="post"&nbsp;action="reg.php"&gt;<br />&nbsp;&nbsp;&lt;p&gt;Username:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;name="username"&nbsp;type="text"&nbsp;maxlength="32"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Password:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;name="password"&nbsp;type="password"&nbsp;maxlength="32"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Ripeti&nbsp;Password:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;name="cpassword"&nbsp;type="password"&nbsp;maxlength="32"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Email:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;name="email"&nbsp;type="text"&nbsp;maxlength="255"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="submit"&nbsp;name="Submit"&nbsp;value="Registrati"&gt;&nbsp;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&lt;/form&gt;<br /><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">break;<br />case(</span><span style="color: #0000BB">3</span><span style="color: #007700">):<br /></span><span style="color: #0000BB">?&gt;<br /></span>Effettua&nbsp;il&nbsp;login&nbsp;compilando&nbsp;il&nbsp;modulo&nbsp;sottostante.<br />&lt;form&nbsp;name="form1"&nbsp;method="post"&nbsp;action="login.php"&gt;<br />&nbsp;&nbsp;&lt;p&gt;Username:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="text"&nbsp;name="username"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Password:&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="password"&nbsp;name="password"&gt;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="submit"&nbsp;name="Submit"&nbsp;value="Login"&gt;&nbsp;<br />&nbsp;&nbsp;&lt;/p&gt;<br />&lt;/form&gt;<br /><br /><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">break;<br />}<br /></span><span style="color: #0000BB">?&gt;<br /></span>&lt;/p&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;&nbsp;<br /></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">Codice PHP:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #007700">include&nbsp;</span><span style="color: #DD0000">'config.php'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'username'</span><span style="color: #007700">];<br /></span><span style="color: #0000BB">&#36;password&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'password'</span><span style="color: #007700">];<br /></span><span style="color: #0000BB">&#36;cpassword&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'cpassword'</span><span style="color: #007700">];<br /></span><span style="color: #0000BB">&#36;email&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'email'</span><span style="color: #007700">];<br /><br /></span><span style="color: #0000BB">&#36;db_query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;*&nbsp;FROM&nbsp;utenti&nbsp;WHERE&nbsp;username&nbsp;=&nbsp;'&#36;username'"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;res&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;db_query</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;conn</span><span style="color: #007700">)&nbsp;or&nbsp;die(</span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">&#36;num_rows&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;res</span><span style="color: #007700">);<br /><br />if(</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">==</span><span style="color: #0000BB">NULL</span><span style="color: #007700">|</span><span style="color: #0000BB">&#36;password</span><span style="color: #007700">==</span><span style="color: #0000BB">NULL</span><span style="color: #007700">|</span><span style="color: #0000BB">&#36;email</span><span style="color: #007700">==</span><span style="color: #0000BB">NULL</span><span style="color: #007700">)&nbsp;{<br />echo&nbsp;</span><span style="color: #DD0000">"Tutti&nbsp;i&nbsp;campi&nbsp;sono&nbsp;obbligatori,&nbsp;&lt;a&nbsp;href='index.php?pg=2'&gt;Torna&nbsp;Indietro&lt;/a&gt;"</span><span style="color: #007700">;<br />exit();<br />}<br />if(</span><span style="color: #0000BB">&#36;num_rows</span><span style="color: #007700">!=</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br />echo&nbsp;</span><span style="color: #DD0000">"Username&nbsp;già&nbsp;presente&nbsp;nel&nbsp;database,&nbsp;&lt;a&nbsp;href='index.php?pg=2'&gt;Torna&nbsp;Indietro&lt;/a&gt;"</span><span style="color: #007700">;<br />exit();<br />}<br />if(</span><span style="color: #0000BB">&#36;password</span><span style="color: #007700">!=</span><span style="color: #0000BB">&#36;cpassword</span><span style="color: #007700">)&nbsp;{<br />echo&nbsp;</span><span style="color: #DD0000">"Le&nbsp;password&nbsp;non&nbsp;coincidono,&nbsp;&lt;a&nbsp;href='index.php?ph=2'&gt;Torna&nbsp;Indietro&lt;/a&gt;"</span><span style="color: #007700">;<br />exit();<br />}<br /><br /></span><span style="color: #0000BB">&#36;query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"INSERT&nbsp;INTO&nbsp;utenti&nbsp;(username,&nbsp;password,&nbsp;email)&nbsp;VALUES&nbsp;('&#36;username','&#36;password','&#36;email')"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query</span><span style="color: #007700">)&nbsp;or&nbsp;die(</span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">());<br />echo</span><span style="color: #DD0000">"Registrazione&nbsp;effettuata.&nbsp;Esegui&nbsp;il&nbsp;login&nbsp;da&nbsp;&lt;a&nbsp;href='index.php?pg=3'&gt;QUI&lt;/a&gt;."</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<div class="codeblock phpcodeblock"><div class="title">Codice PHP:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br />&#36;db_host&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;db_user&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"*****"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;db_pass&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"*****"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;db_name&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"*****"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;conn&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;db_host</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;db_user</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;db_pass</span><span style="color: #007700">)&nbsp;or&nbsp;die&nbsp;(</span><span style="color: #DD0000">'Errore&nbsp;connessione&nbsp;:'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">mysql_select_db</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;db_name</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;conn</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">&#36;sito&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Registrazione&nbsp;EnjoyMt2"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
Allora fino a qui tutto normale... Il problema viene quando io ho hostato tutto su altervista.. Ma il database che io vado ad usare è quello che ho hostato sul mio pc.... Quindi se un utente si registra deve andare a finire nel mio database.... Se inserisco l'ip del database (in questo caso un ip hamachi) mi da questo errore "Errore connessione :Lost connection to MySQL server during query"<br />
<br />
Se invece inserisco localhost a posto dell'ip mi dice "No database selected" Se invece inserisco dati di altervista funziona...! Sono in crisi <br />
<br />
Questo è il primo problema <img class="postimage" src="http://ptm.altervista.org/forum/images/smilies/mysmiles/xd.gif" style="vertical-align: middle;" border="0" alt="xD" title="xD" /><br />
<br />
Ora ho un piccolo dubbio... Come creare uno script php che veda gli utenti registrati per poi bannarli dal database mysql? (questo non è molto importante più priorità al primo...)<br />
<br />
Grazie in anticipo!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Striscia news con selezione della sezione]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Striscia_news_con_selezione_della_sezione</link>
			<pubDate>Mon, 02 Nov 2009 12:56:45 +0100</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Striscia_news_con_selezione_della_sezione</guid>
			<description><![CDATA[In pratica voglio un plugin che faccia apparire 1 o piu (5-6-7) strisce che dicano i topic nuovi che scrive lo staff in una determinata sezione scelta....]]></description>
			<content:encoded><![CDATA[In pratica voglio un plugin che faccia apparire 1 o piu (5-6-7) strisce che dicano i topic nuovi che scrive lo staff in una determinata sezione scelta....]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Nome utente + punti da database]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Nome_utente_punti_da_database</link>
			<pubDate>Mon, 19 Oct 2009 14:34:45 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Nome_utente_punti_da_database</guid>
			<description><![CDATA[Salve, mi servirebbe una pagina dove è presente quanto descritto sotto<br />
<br />
Nome utente: [TEXTBOX&#93;  (BUTTON)<br />
<br />
Questo deve cercare tra i vari utenti del sito presenti nel database MYSQL e <span style="color: #FF0000;"><span style="font-weight: bold;">se il nome non esiste allora non succede nulla e pulisce il campo</span></span> altrimenti <span style="color: #32CD32;"><span style="font-weight: bold;">se lo trova mi serve che sotto o in un'ltra pagina compaiono i punti presenti nel Database in questo modo:</span></span><br />
<br />
<span style="font-weight: bold;">Utente: </span>Vicar<br />
<span style="font-weight: bold;">Punti: </span>2000<br />
<br />
Quali dati vi servono per realizzare ciò?]]></description>
			<content:encoded><![CDATA[Salve, mi servirebbe una pagina dove è presente quanto descritto sotto<br />
<br />
Nome utente: [TEXTBOX]  (BUTTON)<br />
<br />
Questo deve cercare tra i vari utenti del sito presenti nel database MYSQL e <span style="color: #FF0000;"><span style="font-weight: bold;">se il nome non esiste allora non succede nulla e pulisce il campo</span></span> altrimenti <span style="color: #32CD32;"><span style="font-weight: bold;">se lo trova mi serve che sotto o in un'ltra pagina compaiono i punti presenti nel Database in questo modo:</span></span><br />
<br />
<span style="font-weight: bold;">Utente: </span>Vicar<br />
<span style="font-weight: bold;">Punti: </span>2000<br />
<br />
Quali dati vi servono per realizzare ciò?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Script PHP Classifica]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Script_PHP_Classifica</link>
			<pubDate>Sat, 10 Oct 2009 13:59:55 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Script_PHP_Classifica</guid>
			<description><![CDATA[Ho da chiedervi un favore... Sto per aprire un server privato di metin2 e mi servirebbe la classifica...<br />
Credo che lo script dovrebbe funzionare così:<br />
<br />
Rivolto a ptm:<br />
In una tabella (tabella: level) prende il valore piu alto (il livello)<br />
E quindi messo in colonna Nome giocatore | Livello<br />
Però il valore massimo a cui può arrivare dovrà essere 98 perchè al livello 99 ci sono i GM e quindi non dovrebbero apparire...<br />
Mettici i credits e il link al tuo sito così ti faccio anche pubblicità.<br />
<br />
Se lo fai appena lo finisci mi mandi una mail a fear9519@gmail.it in cui mi avvisi?<br />
<br />
Saluti,<br />
Giuseppe]]></description>
			<content:encoded><![CDATA[Ho da chiedervi un favore... Sto per aprire un server privato di metin2 e mi servirebbe la classifica...<br />
Credo che lo script dovrebbe funzionare così:<br />
<br />
Rivolto a ptm:<br />
In una tabella (tabella: level) prende il valore piu alto (il livello)<br />
E quindi messo in colonna Nome giocatore | Livello<br />
Però il valore massimo a cui può arrivare dovrà essere 98 perchè al livello 99 ci sono i GM e quindi non dovrebbero apparire...<br />
Mettici i credits e il link al tuo sito così ti faccio anche pubblicità.<br />
<br />
Se lo fai appena lo finisci mi mandi una mail a fear9519@gmail.it in cui mi avvisi?<br />
<br />
Saluti,<br />
Giuseppe]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Hola a todos]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Hola_a_todos</link>
			<pubDate>Mon, 05 Oct 2009 20:47:58 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Hola_a_todos</guid>
			<description><![CDATA[Hola, yo me llamo Luca Vizzarro y soy un Italiano.]]></description>
			<content:encoded><![CDATA[Hola, yo me llamo Luca Vizzarro y soy un Italiano.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[addons]]></title>
			<link>http://ptm.altervista.org/forum/Thread_addons</link>
			<pubDate>Mon, 05 Oct 2009 16:23:45 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_addons</guid>
			<description><![CDATA[Propongo di aggiungere la possibilità di mettere addons nella 1.0.4]]></description>
			<content:encoded><![CDATA[Propongo di aggiungere la possibilità di mettere addons nella 1.0.4]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[{Apache} Installare Apache e integrare il PHP]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Apache_Installare_Apache_e_integrare_il_PHP</link>
			<pubDate>Sun, 04 Oct 2009 20:06:16 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Apache_Installare_Apache_e_integrare_il_PHP</guid>
			<description><![CDATA[Cosa ci serve?<br />
<span style="font-weight: bold;">Apache:</span><br />
senza OpenSSL: <a href="http://apache.panu.it/httpd/binaries/win32/apache_2.2.13-win32-x86-no_ssl.msi" target="_blank">http://apache.panu.it/httpd/binaries/win...no_ssl.msi</a><br />
oppure<br />
con OpenSSL: <a href="http://apache.panu.it/httpd/binaries/win32/apache_2.2.13-win32-x86-openssl-0.9.8k.msi" target="_blank">http://apache.panu.it/httpd/binaries/win...0.9.8k.msi</a><br />
<br />
<span style="font-weight: bold;">Php:</span><br />
<a href="http://www.php.net/get/php-5.3.0.tar.gz/from/this/mirror" target="_blank">http://www.php.net/get/php-5.3.0.tar.gz/...his/mirror</a><br />
<br />
Primo passo, installare Apache usando l'installer che vi ho messo qui, e dopodichè creare una cartella di nome <span style="font-weight: bold;">php</span> dentro alla path di Apache (<span style="font-weight: bold;">C:\Programmi\Apache Software Foundation\Apache2.2\</span> o la sua posizione) e estrarre tutti contenuti del tar.gz nella cartella appena creata.<br />
Poi aprite con il blocco note <span style="font-weight: bold;">conf/http.conf</span> presente nella cartella di apache e dopo tutti i loadmodule aggiungete questa stringa:<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>LoadModule php5_module "CARTELLADIAPACHE&#92;php&#92;php5apache2_2.dll"<br />
AddType application/x-httpd-php .php</code></div></div>
quando l'aggiungete sostituite CARTELLADIAPACHE con la sua cartella se non è stata cambiata all'installazione potete mettere C:\Programmi\Apache Software Foundation\Apache2.2<br />
Infine per far leggere index.php ad Apache al posto di queste righe che troverete nel file che abbiamo aperto<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;IfModule dir_module&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;DirectoryIndex index.html<br />
&lt;/IfModule&gt;</code></div></div>
mettete questo:<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;IfModule dir_module&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;DirectoryIndex index.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;DirectoryIndex index.html<br />
&nbsp;&nbsp;&nbsp;&nbsp;DirectoryIndex index.htm<br />
&lt;/IfModule&gt;</code></div></div>
che ha con sè anche index.htm<br />
<br />
Per ultimo salvate il file e avviate Apache in questo modo, Menù di Avvio &gt; Programmi &gt; Apache HTTP Server 2.2 &gt; Control Apache Server &gt; Start<br />
E tutto se non avete fatto errori partirà]]></description>
			<content:encoded><![CDATA[Cosa ci serve?<br />
<span style="font-weight: bold;">Apache:</span><br />
senza OpenSSL: <a href="http://apache.panu.it/httpd/binaries/win32/apache_2.2.13-win32-x86-no_ssl.msi" target="_blank">http://apache.panu.it/httpd/binaries/win...no_ssl.msi</a><br />
oppure<br />
con OpenSSL: <a href="http://apache.panu.it/httpd/binaries/win32/apache_2.2.13-win32-x86-openssl-0.9.8k.msi" target="_blank">http://apache.panu.it/httpd/binaries/win...0.9.8k.msi</a><br />
<br />
<span style="font-weight: bold;">Php:</span><br />
<a href="http://www.php.net/get/php-5.3.0.tar.gz/from/this/mirror" target="_blank">http://www.php.net/get/php-5.3.0.tar.gz/...his/mirror</a><br />
<br />
Primo passo, installare Apache usando l'installer che vi ho messo qui, e dopodichè creare una cartella di nome <span style="font-weight: bold;">php</span> dentro alla path di Apache (<span style="font-weight: bold;">C:\Programmi\Apache Software Foundation\Apache2.2\</span> o la sua posizione) e estrarre tutti contenuti del tar.gz nella cartella appena creata.<br />
Poi aprite con il blocco note <span style="font-weight: bold;">conf/http.conf</span> presente nella cartella di apache e dopo tutti i loadmodule aggiungete questa stringa:<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>LoadModule php5_module "CARTELLADIAPACHE&#92;php&#92;php5apache2_2.dll"<br />
AddType application/x-httpd-php .php</code></div></div>
quando l'aggiungete sostituite CARTELLADIAPACHE con la sua cartella se non è stata cambiata all'installazione potete mettere C:\Programmi\Apache Software Foundation\Apache2.2<br />
Infine per far leggere index.php ad Apache al posto di queste righe che troverete nel file che abbiamo aperto<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;IfModule dir_module&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;DirectoryIndex index.html<br />
&lt;/IfModule&gt;</code></div></div>
mettete questo:<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&lt;IfModule dir_module&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;DirectoryIndex index.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;DirectoryIndex index.html<br />
&nbsp;&nbsp;&nbsp;&nbsp;DirectoryIndex index.htm<br />
&lt;/IfModule&gt;</code></div></div>
che ha con sè anche index.htm<br />
<br />
Per ultimo salvate il file e avviate Apache in questo modo, Menù di Avvio &gt; Programmi &gt; Apache HTTP Server 2.2 &gt; Control Apache Server &gt; Start<br />
E tutto se non avete fatto errori partirà]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[{Apache} Aggiungere estensioni associando linguaggi]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Apache_Aggiungere_estensioni_associando_linguaggi</link>
			<pubDate>Sun, 04 Oct 2009 15:00:52 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Apache_Aggiungere_estensioni_associando_linguaggi</guid>
			<description><![CDATA[Oggi vorrò spiegarvi come fare per creare una nuova estensione da usare solo su <span style="font-weight: bold;">htdocs</span>.<br />
Esempio: index.skype, viene letto come estensione da linguaggio php, così:<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>AddType application/x-httpd-php .skype</code></div></div>
infatti se aggiungiamo questa stringa a <span style="font-weight: bold;">http.conf</span> nella parte dove risiedono queste stringhe, salviamo, riavviamo il server, e dopodichè creare un file .skype con all'interno codici php, funzionerà correttamente!]]></description>
			<content:encoded><![CDATA[Oggi vorrò spiegarvi come fare per creare una nuova estensione da usare solo su <span style="font-weight: bold;">htdocs</span>.<br />
Esempio: index.skype, viene letto come estensione da linguaggio php, così:<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>AddType application/x-httpd-php .skype</code></div></div>
infatti se aggiungiamo questa stringa a <span style="font-weight: bold;">http.conf</span> nella parte dove risiedono queste stringhe, salviamo, riavviamo il server, e dopodichè creare un file .skype con all'interno codici php, funzionerà correttamente!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Spanish with corrections on the other files]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Spanish_with_corrections_on_the_other_files</link>
			<pubDate>Sat, 03 Oct 2009 23:58:09 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Spanish_with_corrections_on_the_other_files</guid>
			<description><![CDATA[I have maked the spanish package and i have add other variables for the errors of admin/contents.php, example:<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>error("Errore Interno", "Nessun commento memorizzato");</code></div></div>
this error is replaced with<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>error(&#36;l['err_int'&#93;,&#36;l['err_nocomm'&#93;);</code></div></div>
The variables what i have add are this:<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&#36;l['err_nofcomm'&#93;="No hay mensajes almacenados o eliminados de almacenamiento de archivos";<br />
&#36;l['err_nocomm'&#93;="No hay comentarios registrados";<br />
&#36;l['err_opnval'&#93;="La operación que está intentando ejecutar no es válido";<br />
&#36;l['err_nidspec'&#93;="No se especifica el ID de la observación a la que debemos hacer esto";<br />
&#36;l['err_nidval'&#93;="El ID especificado no es válido";<br />
&#36;l['err_actnoval'&#93;="La acción no válida. Faltan uno o más parámetros para garantizar que la operación tiene éxito";</code></div></div>
only for the spanish package, for the italian and english package you add.<br />
<br />
The spanish package with corrections on <span style="font-weight: bold;">admin/contents.php</span> is here: <a href="http://handromsevar.altervista.org/files/index.php?dir=pcs_103-ESPack" target="_blank">http://handromsevar.altervista.org/files...103-ESPack</a>]]></description>
			<content:encoded><![CDATA[I have maked the spanish package and i have add other variables for the errors of admin/contents.php, example:<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>error("Errore Interno", "Nessun commento memorizzato");</code></div></div>
this error is replaced with<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>error(&#36;l['err_int'],&#36;l['err_nocomm']);</code></div></div>
The variables what i have add are this:<br />
<div class="codeblock">
<div class="title">Codice:<br />
</div><div class="body" dir="ltr"><code>&#36;l['err_nofcomm']="No hay mensajes almacenados o eliminados de almacenamiento de archivos";<br />
&#36;l['err_nocomm']="No hay comentarios registrados";<br />
&#36;l['err_opnval']="La operación que está intentando ejecutar no es válido";<br />
&#36;l['err_nidspec']="No se especifica el ID de la observación a la que debemos hacer esto";<br />
&#36;l['err_nidval']="El ID especificado no es válido";<br />
&#36;l['err_actnoval']="La acción no válida. Faltan uno o más parámetros para garantizar que la operación tiene éxito";</code></div></div>
only for the spanish package, for the italian and english package you add.<br />
<br />
The spanish package with corrections on <span style="font-weight: bold;">admin/contents.php</span> is here: <a href="http://handromsevar.altervista.org/files/index.php?dir=pcs_103-ESPack" target="_blank">http://handromsevar.altervista.org/files...103-ESPack</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Giudizio stile]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Giudizio_stile</link>
			<pubDate>Sat, 03 Oct 2009 18:20:39 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Giudizio_stile</guid>
			<description><![CDATA[Come ben sapete realizzando una nuova grafica per il sito e siccome di grafica penso di essere ancora agli inizi volevo chiedere a qualcuno di più esperto qualche giudizio/consiglio su come migliorare il template che sto realizzando. Ovviamente per adesso è solo una demo e sicuramente c'è ancora molto lavoro da fare...<br />
<br />
Indirizzo: <a href="http://ptm.altervista.org/template.html" target="_blank">http://ptm.altervista.org/template.html</a>]]></description>
			<content:encoded><![CDATA[Come ben sapete realizzando una nuova grafica per il sito e siccome di grafica penso di essere ancora agli inizi volevo chiedere a qualcuno di più esperto qualche giudizio/consiglio su come migliorare il template che sto realizzando. Ovviamente per adesso è solo una demo e sicuramente c'è ancora molto lavoro da fare...<br />
<br />
Indirizzo: <a href="http://ptm.altervista.org/template.html" target="_blank">http://ptm.altervista.org/template.html</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Downtime]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Downtime</link>
			<pubDate>Sat, 26 Sep 2009 14:01:54 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Downtime</guid>
			<description><![CDATA[A causa di un problema di AlterVista sul datacenter ospitato a Londra ieri questo sito è rimasto irraggiungibile per parecchie ore. Grazie ai lavori dello staff di AlterVista il problema si è risolto alle ore 23:50 e grazie ai test fatti alle 2:40 è stato annunciato che il datacenter londinese ha ripreso correttamente a funzionare. Ringraziamo lo staff di AlterVista per il lavoro che fa.]]></description>
			<content:encoded><![CDATA[A causa di un problema di AlterVista sul datacenter ospitato a Londra ieri questo sito è rimasto irraggiungibile per parecchie ore. Grazie ai lavori dello staff di AlterVista il problema si è risolto alle ore 23:50 e grazie ai test fatti alle 2:40 è stato annunciato che il datacenter londinese ha ripreso correttamente a funzionare. Ringraziamo lo staff di AlterVista per il lavoro che fa.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rilasciata versione 1.4.9 MyBB]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Rilasciata_versione_1_4_9_MyBB</link>
			<pubDate>Mon, 21 Sep 2009 20:35:36 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Rilasciata_versione_1_4_9_MyBB</guid>
			<description><![CDATA[E' stato rilasciato circa 2 ore fa l'ultimo pacchetto di MyBB<br />
<br />
MyBB 1.4.9 è un aggiornamento di sicurezza per la serie 1.4.x di MyBB. Risolve un bug di sicurezza, a elevato rischio e due a basso rischio.<br />
Si raccomanda di aggiornare immediatamente la board o di eseguire un upgrade manuale seguendo le istruzioni in basso.<br />
<br />
Questi bug riguardano MyBB 1.4.8 e minori e le versioni 1.2.x.<br />
<br />
Per più info vai qui: <a href="http://www.mybboard.it/forum/portal.php" target="_blank">http://www.mybboard.it/forum/portal.php</a>]]></description>
			<content:encoded><![CDATA[E' stato rilasciato circa 2 ore fa l'ultimo pacchetto di MyBB<br />
<br />
MyBB 1.4.9 è un aggiornamento di sicurezza per la serie 1.4.x di MyBB. Risolve un bug di sicurezza, a elevato rischio e due a basso rischio.<br />
Si raccomanda di aggiornare immediatamente la board o di eseguire un upgrade manuale seguendo le istruzioni in basso.<br />
<br />
Questi bug riguardano MyBB 1.4.8 e minori e le versioni 1.2.x.<br />
<br />
Per più info vai qui: <a href="http://www.mybboard.it/forum/portal.php" target="_blank">http://www.mybboard.it/forum/portal.php</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Script,quando clicki su una determinata immagine sale di livello.]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Script_quando_clicki_su_una_determinata_immagine_sale_di_livello</link>
			<pubDate>Sun, 20 Sep 2009 20:12:40 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Script_quando_clicki_su_una_determinata_immagine_sale_di_livello</guid>
			<description><![CDATA[Il titolo dice tutto vorrei uno script php che praticamente clicchi sull'immagine e ti porta a la pagine web del immagine che ti e stata data quando ti sei registrato.]]></description>
			<content:encoded><![CDATA[Il titolo dice tutto vorrei uno script php che praticamente clicchi sull'immagine e ti porta a la pagine web del immagine che ti e stata data quando ti sei registrato.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[AlterVista supporterà fopen su URL esterni]]></title>
			<link>http://ptm.altervista.org/forum/Thread_AlterVista_supporter%C3%A0_fopen_su_URL_esterni</link>
			<pubDate>Sun, 20 Sep 2009 15:47:47 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_AlterVista_supporter%C3%A0_fopen_su_URL_esterni</guid>
			<description><![CDATA[Come annunciato dall'amministratore di AlterVista (Gianluca) con i prossimi aggiornamenti del php engine questo servizio di hosting potrà supportare le chiamate a fopen anche su url esterni. Questo permetterà di non vincolarsi necessariamente a fsockopen o alle librerie curl per ricevere contenuti.]]></description>
			<content:encoded><![CDATA[Come annunciato dall'amministratore di AlterVista (Gianluca) con i prossimi aggiornamenti del php engine questo servizio di hosting potrà supportare le chiamate a fopen anche su url esterni. Questo permetterà di non vincolarsi necessariamente a fsockopen o alle librerie curl per ricevere contenuti.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Errore nel while]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Errore_nel_while</link>
			<pubDate>Tue, 15 Sep 2009 16:54:06 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Errore_nel_while</guid>
			<description><![CDATA[Ecco la funzione<br />
<div class="codeblock phpcodeblock"><div class="title">Codice PHP:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">forums_list</span><span style="color: #007700">()&nbsp;{<br />global&nbsp;</span><span style="color: #0000BB">&#36;over_forum</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;query_forums&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;*&nbsp;FROM&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">&#93;.</span><span style="color: #DD0000">"forums"</span><span style="color: #007700">)&nbsp;or&nbsp;die(</span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">());<br />if&nbsp;(</span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query_forums</span><span style="color: #007700">))&nbsp;{<br />while(</span><span style="color: #0000BB">&#36;fetch_forums&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_fetch_assoc</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query_forums</span><span style="color: #007700">))&nbsp;{<br /></span><span style="color: #0000BB">&#36;over_forum&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"&lt;ul&gt;&lt;li&gt;&lt;a&nbsp;href=&#092;"admin.php?page=forum&amp;action=edit&amp;fid=&#36;fetch_forums[fid&#93;&#092;"&gt;&#36;fetch_forums[name&#93;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;"</span><span style="color: #007700">;<br />return&nbsp;</span><span style="color: #0000BB">&#36;over_forum</span><span style="color: #007700">;<br />}<br />}<br />}&nbsp;<br /></span></code></div></div></div>
Così mi printa soltanto il primo risultato.<br />
Se invece il return lo metto fuori dal ciclo while mi printa soltanto il secondo risultato.<br />
Come mai? A me sembra tutto corretto...]]></description>
			<content:encoded><![CDATA[Ecco la funzione<br />
<div class="codeblock phpcodeblock"><div class="title">Codice PHP:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">forums_list</span><span style="color: #007700">()&nbsp;{<br />global&nbsp;</span><span style="color: #0000BB">&#36;over_forum</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#36;query_forums&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;*&nbsp;FROM&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'prefix'</span><span style="color: #007700">].</span><span style="color: #DD0000">"forums"</span><span style="color: #007700">)&nbsp;or&nbsp;die(</span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">());<br />if&nbsp;(</span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query_forums</span><span style="color: #007700">))&nbsp;{<br />while(</span><span style="color: #0000BB">&#36;fetch_forums&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_fetch_assoc</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query_forums</span><span style="color: #007700">))&nbsp;{<br /></span><span style="color: #0000BB">&#36;over_forum&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"&lt;ul&gt;&lt;li&gt;&lt;a&nbsp;href=&#092;"admin.php?page=forum&amp;action=edit&amp;fid=&#36;fetch_forums[fid]&#092;"&gt;&#36;fetch_forums[name]&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;"</span><span style="color: #007700">;<br />return&nbsp;</span><span style="color: #0000BB">&#36;over_forum</span><span style="color: #007700">;<br />}<br />}<br />}&nbsp;<br /></span></code></div></div></div>
Così mi printa soltanto il primo risultato.<br />
Se invece il return lo metto fuori dal ciclo while mi printa soltanto il secondo risultato.<br />
Come mai? A me sembra tutto corretto...]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Sito chiuso]]></title>
			<link>http://ptm.altervista.org/forum/Thread_Sito_chiuso</link>
			<pubDate>Sun, 13 Sep 2009 18:11:25 +0200</pubDate>
			<guid isPermaLink="false">http://ptm.altervista.org/forum/Thread_Sito_chiuso</guid>
			<description><![CDATA[Stiamo (sto) lavorando per migliorare l'accessibilità e i contenuti del sito. Per questo per un po' di tempo il sito rimarrà offline. Durante questo periodo il forum non ne risentirà siccome rimarrà sempre aperto. Per tenere sotto controllo tutti i dettagli sull'andamento dei vari lavori andate qui: <a href="http://ptm.altervista.org/forum/Calendar_Calendario_gestione_forum_sito" target="_blank">http://ptm.altervista.org/forum/Calendar...forum_sito</a><br />
Ringraziamo tutti per l'appoggio che ci state dando.]]></description>
			<content:encoded><![CDATA[Stiamo (sto) lavorando per migliorare l'accessibilità e i contenuti del sito. Per questo per un po' di tempo il sito rimarrà offline. Durante questo periodo il forum non ne risentirà siccome rimarrà sempre aperto. Per tenere sotto controllo tutti i dettagli sull'andamento dei vari lavori andate qui: <a href="http://ptm.altervista.org/forum/Calendar_Calendario_gestione_forum_sito" target="_blank">http://ptm.altervista.org/forum/Calendar...forum_sito</a><br />
Ringraziamo tutti per l'appoggio che ci state dando.]]></content:encoded>
		</item>
	</channel>
</rss>