<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">

<channel>
<title><![CDATA[ScripTips - Scripts & Tips]]></title>
<link><![CDATA[http://www.scriptips.com]]></link>
<description><![CDATA[Blog]]></description>
<generator>MemHT Portal</generator>
<item>
<title><![CDATA[Dreamhost promo code]]></title>
<link><![CDATA[http://www.scriptips.com/blog_view_16_Dreamhost-promo-code.html]]></link>
<guid isPermaLink="true"><![CDATA[http://www.scriptips.com/blog_view_16_Dreamhost-promo-code.html]]></guid>
<description><![CDATA[<a target="_blank" href="http://www.dreamhost.com/r.cgi?435407"><img height="37" border="0" align="left" width="100" src="/uploads/image/100x75-a.gif" alt="Dreamhost" style="margin-right: 6px;" /></a><a target="_blank" href="http://www.dreamhost.com/r.cgi?435407"><b>Dreamhost</b></a> &egrave; un hoster che negli ultimi tempi sta risquotendo un grandissimo successo, grazie alla sua offerta e soprattutto alla sua affidabilit&agrave;.<br />
<br />
Il piano shared hosting &egrave; caraterizzato da ben <b>500GB</b> di spazio web e <b>5TB</b> di banda, quantit&agrave; pressoch&eacute; illimitate, che molto difficilmente potranno essere raggiunte, anche dai siti web pi&ugrave; esigenti.<br />
L'offerta include inoltre un <b>dominio gratuito</b> per i piani annuali, <b>infinite caselle email</b>, <b>domini</b> con cui &egrave; possibile <b>puntare</b> il proprio spazio web, <b>sottodomini</b>, <b>database mysql</b> ed <b>account ftp</b>... in poche parole <b>senza limiti</b>!<br />
<br />
Per coloro che sono interessati, oltre alle caratteristiche sopra citate, potete, utilizzando il seguente codice promozionale, usufruire di ulteriori vantaggi:<br />
<br />
Promo code: <a target="_blank" href="http://www.dreamhost.com/r.cgi?435407"><span style="font-size: small;"><b>memht</b></span></a><br />
Descrizione: <b>Sconto, -50$ </b>sul prezzo finale del vostro ordine<br />
<br />
Cosa aspetti? <a target="_blank" href="http://www.dreamhost.com/r.cgi?435407"><b>Cogli l'attimo e registrati!</b></a>]]></description>
<pubDate><![CDATA[Thu, 17 Jul 2008 03:29:28 GMT]]></pubDate>
</item>
<item>
<title><![CDATA[jQuery Framework]]></title>
<link><![CDATA[http://www.scriptips.com/blog_view_15_jQuery-Framework.html]]></link>
<guid isPermaLink="true"><![CDATA[http://www.scriptips.com/blog_view_15_jQuery-Framework.html]]></guid>
<description><![CDATA[<img width="132" height="132" align="left" src="/uploads/image/jQuery-logo.gif" alt="jQuery" style="margin-right: 10px;" /><a target="_blank" href="http://jquery.com">jQuery</a> &egrave; un framework JavaScript che sta risquotendo un enorme successo, grazie alla sua leggerezza ed alla sua potenzialit&agrave;. <br />
Per chi non ha mai utilizzato fino ad ora una libreria JavaScript, che essa fornisce degli strumenti che ci possono semplificare la vita durante lo sviluppo di una pagina web.<br />
<br />
<br />
In jQuery, alcuni di questi strumenti (i pi&ugrave; importanti) sono la gestione degli eventi, le animazioni e le interazioni grazie ad AJAX.<br />]]></description>
<pubDate><![CDATA[Sat, 28 Jun 2008 22:48:03 GMT]]></pubDate>
</item>
<item>
<title><![CDATA[Vinci MacBook Air]]></title>
<link><![CDATA[http://www.scriptips.com/blog_view_14_Vinci-MacBook-Air.html]]></link>
<guid isPermaLink="true"><![CDATA[http://www.scriptips.com/blog_view_14_Vinci-MacBook-Air.html]]></guid>
<description><![CDATA[<div style="text-align: left;"><img width="513" height="329" src="/uploads/image/mbasplashtiregala.jpg" alt="MacBook" /></div>
<br />
Solo 4 parole:<br />
<b>MacBook Air</b>, <b>Contest</b>, <b>Regalo</b>, <a href="http://www.guadagnorisparmiando.com" title="risparmiare"><strong>Risparmiare</strong></a>... serve sapere altro?<br />
<br />
Qui potete trovare altre informazioni:
<div style="font-size: 11px;"><a href="http://www.guadagnorisparmiando.com/isayblog/macbook-air-contest/">http://www.guadagnorisparmiando.com/isayblog/macbook-air-contest/</a></div>]]></description>
<pubDate><![CDATA[Thu, 26 Jun 2008 17:38:15 GMT]]></pubDate>
</item>
<item>
<title><![CDATA[Installare estensioni incompatibili con Firefox 3 Beta]]></title>
<link><![CDATA[http://www.scriptips.com/blog_view_13_Installare-estensioni-incompatibili-con-Firefox-3-Beta.html]]></link>
<guid isPermaLink="true"><![CDATA[http://www.scriptips.com/blog_view_13_Installare-estensioni-incompatibili-con-Firefox-3-Beta.html]]></guid>
<description><![CDATA[<img width="153" hspace="4" height="44" border="0" align="left" alt="" src="/uploads/image/firefox_beta.jpg" />Come forse avrete notato, ultimamente in Mozilla Addons, il bottone per il <i>download</i> delle estensioni, viene disabilitato se la vostra versione Firefox &egrave; maggiore di quella compatibile, anche se praticamente parlando, non ci sono problemi (Attenzione: Non tutte le estensioni sono comunque funzionanti, alcune creano problemi seri di stabilit&agrave;).<br />
<br />
Come risolvere? Semplice...]]></description>
<pubDate><![CDATA[Mon, 07 Apr 2008 02:29:35 GMT]]></pubDate>
</item>
<item>
<title><![CDATA[Testare i propri script PHP in locale]]></title>
<link><![CDATA[http://www.scriptips.com/blog_view_11_Testare-i-propri-script-PHP-in-locale.html]]></link>
<guid isPermaLink="true"><![CDATA[http://www.scriptips.com/blog_view_11_Testare-i-propri-script-PHP-in-locale.html]]></guid>
<description><![CDATA[Creare (o modificare) uno script, caricare il file online con un programma ftp, aggiornare la pagina, il tutto arricchito da un'attesa snervante... si pu&ograve; fare una, due, tre, quattro volte, ma ad un certo punto molto probabilmente ci viene la nausea. Come fare allora? Semplice: <b>Trasformiamo il nostro computer desktop in un vero e proprio server</b>.<br />
<br />
Per fare una cosa del genere dovremmo installare vari componenti: Apache, PHP, MySQL, moduli aggiuntivi... ma perch&egrave; complicarci la vita quando possiamo installare tutto questo con un programma solo?<br />
<br />
<img width="49" hspace="0" height="49" align="left" src="/uploads/image/xampp/xampp_logo.gif" alt="" style="margin-right: 4px;" /><a href="http://www.apachefriends.org/it/xampp.html" target="_blank"><b>XAMPP</b></a> &egrave; una <b>piattaforma di sviluppo web</b>, contenente Apache, PHP, PEAR, Perl, MySQL, phpMyAdmin, GD (con FreeType2), SQLite, eAccelerator e molto altro ancora...<br />
<br />
<br />
<br />
<b>E' molto semplice da installare</b>, <b>utilizzare</b> (ed evventualmente da togliere), permette la configurazione completa dei componenti, ha ben 4 versioni: Linux, Windows, Mac OS X, Solaris, ed una cosa importantissima: <b>Permette la gestione della sicurezza per ogni singolo componente</b> (restrizione dell'accesso).]]></description>
<pubDate><![CDATA[Sat, 12 Jan 2008 19:38:10 GMT]]></pubDate>
</item>

<item>
<title><![CDATA[Inviare dati ad un file con AJAX]]></title>
<link><![CDATA[http://www.scriptips.com/blog_view_10_Inviare-dati-ad-un-file-con-AJAX.html]]></link>
<guid isPermaLink="true"><![CDATA[http://www.scriptips.com/blog_view_10_Inviare-dati-ad-un-file-con-AJAX.html]]></guid>
<description><![CDATA[Nell'articolo precedente abbiamo visto come <a href="http://www.scriptips.com/blog_view_7_Leggere-i-dati-provenienti-da-un-file-con-AJAX.html">creare l'oggetto xmlHttpRequest e leggere i dati provenienti da un file</a>, questa volta invece vedremo come inviare dei dati ad un file, ovviamente tutto in modo asincrono.<br />
<br />
<div class="std_code"><div style="overflow:auto; max-width:500px; width:expression(document.body.clientWidth > 400? '400px': 'auto' );">&lt;input type=<span style="color: #CC0000;">&quot;text&quot;</span> id=<span style="color: #CC0000;">&quot;text&quot;</span>/&gt;<br />
&lt;input type=<span style="color: #CC0000;">&quot;submit&quot;</span> name=<span style="color: #CC0000;">&quot;Submit&quot;</span> value=<span style="color: #CC0000;">&quot;Invia&quot;</span> onclick=<span style="color: #CC0000;">&quot;submitData();&quot;</span>/&gt;<br />
<br />
&lt;script type=<span style="color: #CC0000;">&quot;text/javascript&quot;</span>&gt;<br />
    <span style="color: #0000FF; font-weight: bold;">function</span> getXMLHttpRequestObject<span style="color: #000099;">&#40;</span><span style="color: #000099;">&#41;</span> <span style="color: #000099;">&#123;</span><br />
        <span style="color: #006600;">var</span> xmlobj;<br />
        try <span style="color: #000099;">&#123;</span><br />
            <span style="color: #FF9900;">//Native support: Gecko,Opera,IE7,Safari etc</span><br />
            xmlobj = <span style="color: #0000FF; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #000099;">&#40;</span><span style="color: #000099;">&#41;</span>;<br />
        <span style="color: #000099;">&#125;</span> catch<span style="color: #000099;">&#40;</span>e<span style="color: #000099;">&#41;</span> <span style="color: #000099;">&#123;</span><br />
            try <span style="color: #000099;">&#123;</span><br />
                <span style="color: #FF9900;">//ActiveX support: IE6</span><br />
                xmlobj = <span style="color: #0000FF; font-weight: bold;">new</span> ActiveXObject<span style="color: #000099;">&#40;</span><span style="color: #CC0000;">&quot;Msxml2.XMLHTTP&quot;</span><span style="color: #000099;">&#41;</span>;<br />
            <span style="color: #000099;">&#125;</span> catch <span style="color: #000099;">&#40;</span>e<span style="color: #000099;">&#41;</span> <span style="color: #000099;">&#123;</span><br />
                try <span style="color: #000099;">&#123;</span><br />
                    <span style="color: #FF9900;">//ActiveX support: IE5.5,IE5</span><br />
                    xmlobj = <span style="color: #0000FF; font-weight: bold;">new</span> ActiveXObject<span style="color: #000099;">&#40;</span><span style="color: #CC0000;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #000099;">&#41;</span>;<br />
                <span style="color: #000099;">&#125;</span> catch <span style="color: #000099;">&#40;</span>e<span style="color: #000099;">&#41;</span> <span style="color: #000099;">&#123;</span><br />
                    <span style="color: #FF9900;">//Ajax not supported</span><br />
                    xmlobj = <span style="color: #0000FF; font-weight: bold;">null</span>;<br />
                    <span style="color: #006600;">return</span> <span style="color: #006600;">false</span>;<br />
                <span style="color: #000099;">&#125;</span><br />
            <span style="color: #000099;">&#125;</span><br />
        <span style="color: #000099;">&#125;</span><br />
        <span style="color: #006600;">return</span> xmlobj;<br />
    <span style="color: #000099;">&#125;</span><br />
    <br />
    <span style="color: #0000FF; font-weight: bold;">function</span> submitData<span style="color: #000099;">&#40;</span><span style="color: #000099;">&#41;</span> <span style="color: #000099;">&#123;</span><br />
        <span style="color: #006600;">var</span> text = document.getElementById<span style="color: #000099;">&#40;</span><span style="color: #CC0000;">'text'</span><span style="color: #000099;">&#41;</span>.value;<br />
        xmlHttpRequest.open<span style="color: #000099;">&#40;</span><span style="color: #CC0000;">&quot;POST&quot;</span>,<span style="color: #CC0000;">&quot;file.php&quot;</span>,<span style="color: #006600;">true</span><span style="color: #000099;">&#41;</span>;<br />
        xmlHttpRequest.setRequestHeader<span style="color: #000099;">&#40;</span><span style="color: #CC0000;">'Content-Type'</span>,<span style="color: #CC0000;">'application/x-www-form-urlencoded'</span><span style="color: #000099;">&#41;</span>;<br />
        xmlHttpRequest.send<span style="color: #000099;">&#40;</span><span style="color: #CC0000;">'text='</span>+text<span style="color: #000099;">&#41;</span>;<br />
    <span style="color: #000099;">&#125;</span><br />
    <br />
    xmlHttpRequest = getXMLHttpRequestObject<span style="color: #000099;">&#40;</span><span style="color: #000099;">&#41;</span>;<br />
<span style="color: #0000FF; font-weight: bold;">&lt;/script&gt;</span></div></div>]]></description>
<pubDate><![CDATA[Sun, 06 Jan 2008 18:20:08 GMT]]></pubDate>
</item>
<item>
<title><![CDATA[Inserire un page peel nell'angolo della pagina]]></title>
<link><![CDATA[http://www.scriptips.com/blog_view_8_Inserire-un-page-peel-nellangolo-della-pagina.html]]></link>
<guid isPermaLink="true"><![CDATA[http://www.scriptips.com/blog_view_8_Inserire-un-page-peel-nellangolo-della-pagina.html]]></guid>
<description><![CDATA[<div class="std_code"><div style="overflow:auto; max-width:500px; width:expression(document.body.clientWidth > 400? '400px': 'auto' );">&lt;div style=<span style="color: #CC0000;">'position:absolute;top:0;right:2px;width:120px;height:120px;z-index:99'</span> id=<span style="color: #CC0000;">'dogear_promo'</span>&gt;<br />
    &lt;map name=<span style="color: #CC0000;">'dogearmap'</span> id=<span style="color: #CC0000;">'dogearmap'</span>&gt;<br />
        &lt;area shape=<span style="color: #CC0000;">'poly'</span> coords=<span style="color: #CC0000;">'0,0,120,0,120,120'</span> href=<span style="color: #CC0000;">'http://www.ereiser.org'</span> alt=<span style="color: #CC0000;">''</span> /&gt;<br />
    &lt;/map&gt;<br />
    &lt;img src=<span style="color: #CC0000;">'http://www.ereiser.org/vostra immagine.gif'</span> usemap=<span style="color: #CC0000;">'#dogearmap'</span> alt=<span style="color: #CC0000;">'Walletpop'</span> style=<span style="color: #CC0000;">'border: 0;'</span> /&gt;<br />
&lt;/div&gt;</div></div><br />
Il codice &egrave; semplice ed intuitivo basta inserirlo nelle vostre pagine e inserire il percorso del vostro link e della vostra immagine. <br />
Ricordate che l'immagine deve avere l'angolo retto.]]></description>
<pubDate><![CDATA[Wed, 02 Jan 2008 17:23:38 GMT]]></pubDate>
</item>
<item>
<title><![CDATA[Leggere i dati provenienti da un file con AJAX]]></title>
<link><![CDATA[http://www.scriptips.com/blog_view_7_Leggere-i-dati-provenienti-da-un-file-con-AJAX.html]]></link>
<guid isPermaLink="true"><![CDATA[http://www.scriptips.com/blog_view_7_Leggere-i-dati-provenienti-da-un-file-con-AJAX.html]]></guid>
<description><![CDATA[Con <strong>AJAX</strong> (<em>Asynchronous JavaScript and XML</em>) abbiamo la possibilit&agrave; di acquisire o inviare dati ad un file, senza dover aggiornare la pagina (in modo asincrono appunto), permettendoci di ottenere degli effetti grafici molto piacevoli<br />
<br />
La base per una connessione asincrona &egrave; l'oggetto XMLHttpRequest, il quale per mantenere una tradizione universale <em>(non ci piace il lavoro facile vero?)</em>, non viene supportato da tutti i browser (IE, come al solito).<br />
Per sopperire alla mancanza, possiamo utilizzare gli oggetti Msxml2.XMLHTTP, Microsoft.XMLHTTP eccetera (non &egrave; importante ricordarseli tutti a memoria)<br />
<br />
Creiamo una piccola funzione che ci permetta di automatizzare la creazione dell'oggetto<br />
<br />
<div class="std_code"><div style="overflow:auto; max-width:500px; width:expression(document.body.clientWidth > 400? '400px': 'auto' );">&lt;script type=<span style="color: #CC0000;">&quot;text/javascript&quot;</span>&gt;<br />
    <span style="color: #0000FF; font-weight: bold;">function</span> getXMLHttpRequestObject<span style="color: #000099;">&#40;</span><span style="color: #000099;">&#41;</span> <span style="color: #000099;">&#123;</span><br />
        <span style="color: #006600;">var</span> xmlobj;<br />
        try <span style="color: #000099;">&#123;</span><br />
            <span style="color: #FF9900;">//Supporto Nativo: Gecko,Opera,IE7,Safari etc</span><br />
            xmlobj = <span style="color: #0000FF; font-weight: bold;">new</span> XMLHttpRequest<span style="color: #000099;">&#40;</span><span style="color: #000099;">&#41;</span>;<br />
        <span style="color: #000099;">&#125;</span> catch<span style="color: #000099;">&#40;</span>e<span style="color: #000099;">&#41;</span> <span style="color: #000099;">&#123;</span><br />
            try <span style="color: #000099;">&#123;</span><br />
                <span style="color: #FF9900;">//Supporto ActiveX: IE6</span><br />
                xmlobj = <span style="color: #0000FF; font-weight: bold;">new</span> ActiveXObject<span style="color: #000099;">&#40;</span><span style="color: #CC0000;">&quot;Msxml2.XMLHTTP&quot;</span><span style="color: #000099;">&#41;</span>;<br />
            <span style="color: #000099;">&#125;</span> catch <span style="color: #000099;">&#40;</span>e<span style="color: #000099;">&#41;</span> <span style="color: #000099;">&#123;</span><br />
                try <span style="color: #000099;">&#123;</span><br />
                    <span style="color: #FF9900;">//Supporto ActiveX: IE5.5,IE5</span><br />
                    xmlobj = <span style="color: #0000FF; font-weight: bold;">new</span> ActiveXObject<span style="color: #000099;">&#40;</span><span style="color: #CC0000;">&quot;Microsoft.XMLHTTP&quot;</span><span style="color: #000099;">&#41;</span>;<br />
                <span style="color: #000099;">&#125;</span> catch <span style="color: #000099;">&#40;</span>e<span style="color: #000099;">&#41;</span> <span style="color: #000099;">&#123;</span><br />
                    <span style="color: #FF9900;">//Ajax non supportato</span><br />
                    xmlobj = <span style="color: #0000FF; font-weight: bold;">null</span>;<br />
                    <span style="color: #006600;">return</span> <span style="color: #006600;">false</span>;<br />
                <span style="color: #000099;">&#125;</span><br />
            <span style="color: #000099;">&#125;</span><br />
        <span style="color: #000099;">&#125;</span><br />
        <span style="color: #006600;">return</span> xmlobj;<br />
    <span style="color: #000099;">&#125;</span><br />
<span style="color: #0000FF; font-weight: bold;">&lt;/script&gt;</span></div></div>]]></description>
<pubDate><![CDATA[Sun, 30 Dec 2007 16:25:03 GMT]]></pubDate>
</item>
<item>
<title><![CDATA[Inserire le mappe di google nel priprio sito]]></title>
<link><![CDATA[http://www.scriptips.com/blog_view_6_Inserire-le-mappe-di-google-nel-priprio-sito.html]]></link>
<guid isPermaLink="true"><![CDATA[http://www.scriptips.com/blog_view_6_Inserire-le-mappe-di-google-nel-priprio-sito.html]]></guid>
<description><![CDATA[Inserire una mappa da google maps nel vostro sito non &egrave; mai stato cosi semplice. Occore per prima cosa registrare una key puntando il browser su <a href="http://code.google.com/apis/ajaxsearch/signup.html"><strong>Google Api Key</strong></a> una volta fatto ci&ograve; incollatela subito dopo <strong>key<br />
<br />
</strong>Incollare tra i <strong>tag head</strong> il codice che richiama la nostra Api<br />
<br />
<div class="std_code"><div style="overflow:auto; max-width:500px; width:expression(document.body.clientWidth > 400? '400px': 'auto' );">&lt;script src=<span style="color: #CC0000;">&quot;http://www.google.com/jsapi?key=Inserire qui la Key&quot;</span> type=<span style="color: #CC0000;">&quot;text/javascript&quot;</span>&gt;&lt;/script&gt;</div></div><br />
<br />
Adesso passiamo al resto inseriamo questo codice sempre tra gli i <strong>tag head</strong> e analizziamolo.<br />
<br />
<div class="std_code"><div style="overflow:auto; max-width:500px; width:expression(document.body.clientWidth > 400? '400px': 'auto' );">&lt;script type=<span style="color: #CC0000;">&quot;text/javascript&quot;</span>&gt;<br />
      google.load<span style="color: #000099;">&#40;</span><span style="color: #CC0000;">&quot;maps&quot;</span>, <span style="color: #CC0000;">&quot;1&quot;</span><span style="color: #000099;">&#41;</span>;<br />
<br />
      <span style="color: #FF9900;">// Call this function when the page has been loaded</span><br />
      <span style="color: #0000FF; font-weight: bold;">function</span> initialize<span style="color: #000099;">&#40;</span><span style="color: #000099;">&#41;</span> <span style="color: #000099;">&#123;</span><br />
        <span style="color: #006600;">var</span> map = <span style="color: #0000FF; font-weight: bold;">new</span> google.maps.Map2<span style="color: #000099;">&#40;</span>document.getElementById<span style="color: #000099;">&#40;</span><span style="color: #CC0000;">&quot;map&quot;</span><span style="color: #000099;">&#41;</span><span style="color: #000099;">&#41;</span>;<br />
        map.setCenter<span style="color: #000099;">&#40;</span><span style="color: #0000FF; font-weight: bold;">new</span> google.maps.LatLng<span style="color: #000099;">&#40;</span><span style="color: #FF0000;">37.4419</span>, <span style="color: #FF0000;">-122.1419</span><span style="color: #000099;">&#41;</span>, <span style="color: #FF0000;">13</span><span style="color: #000099;">&#41;</span>;<br />
<br />
      <span style="color: #000099;">&#125;</span><br />
      google.setOnLoadCallback<span style="color: #000099;">&#40;</span>initialize<span style="color: #000099;">&#41;</span>;<br />
    <span style="color: #0000FF; font-weight: bold;">&lt;/script&gt;</span></div></div><br />
<br />
La mappa punter&agrave; su queste coordinate <strong>37.4419</strong> e <strong>122.1419</strong> mentre il <strong>13</strong> corrisponde allo <strong>Zoom</strong>.<br />
<br />
<div class="std_code"><div style="overflow:auto; max-width:500px; width:expression(document.body.clientWidth > 400? '400px': 'auto' );">map.setCenter<span style="color: #000099;">&#40;</span><span style="color: #0000FF; font-weight: bold;">new</span> google.maps.LatLng<span style="color: #000099;">&#40;</span><span style="color: #FF0000;">37.4419</span>, <span style="color: #FF0000;">-122.1419</span><span style="color: #000099;">&#41;</span>, <span style="color: #FF0000;">13</span><span style="color: #000099;">&#41;</span>;</div></div><br />
<br />
Adesso passiamo alla visualizzazione vera e propria inserendo tra i <strong>tag body</strong> questo codice<br />
<br />
<div class="std_code"><div style="overflow:auto; max-width:500px; width:expression(document.body.clientWidth > 400? '400px': 'auto' );">&lt;div id=<span style="color: #CC0000;">&quot;map&quot;</span> style=<span style="color: #CC0000;">&quot;width: 200px; height: 200px&quot;</span>&gt;&lt;/div&gt;</div></div><br />
<br />
con la prima riga avremo una mappa con <strong>larghezza e altezza di 200px.</strong>]]></description>
<pubDate><![CDATA[Fri, 28 Dec 2007 16:16:03 GMT]]></pubDate>
</item>
<item>
<title><![CDATA[Creare una connessione MySQL]]></title>
<link><![CDATA[http://www.scriptips.com/blog_view_5_Creare-una-connessione-MySQL.html]]></link>
<guid isPermaLink="true"><![CDATA[http://www.scriptips.com/blog_view_5_Creare-una-connessione-MySQL.html]]></guid>
<description><![CDATA[Creare una connessione MySQL in PHP &egrave; molto semplice, le funzioni base sono pochissime:<br />
<br />
- mysql_connect<br />
- mysql_select_db<br />
- mysql_free_result<br />
- mysql_close<br />
<br />
Abbiamo ovviamente bisogno dei dati di accesso al database:<br />
<br />
- Host<br />
- Username<br />
- Password<br />
- Nome database<br />
L'host deve essere un indirizzo ip, un dominio o `localhost`<em> (solamente quando il servizio mysql &egrave; installato sullo stesso server dove risiede il file che apre la connessione)<br />
<br />
</em>Vediamo un esempio completo di codice:<br />
<br />
<div class="std_code"><div style="overflow:auto; max-width:500px; width:expression(document.body.clientWidth > 400? '400px': 'auto' );"><span style="color: #0000FF;">$host</span> = <span style="color: #CC0000;">&quot;localhost&quot;</span>;<br />
<span style="color: #0000FF;">$user</span> = <span style="color: #CC0000;">&quot;ilmiousername&quot;</span>;<br />
<span style="color: #0000FF;">$pass</span> = <span style="color: #CC0000;">&quot;lamiapassword&quot;</span>;<br />
<span style="color: #0000FF;">$nome</span> = <span style="color: #CC0000;">&quot;nomedatabase&quot;</span>;<br />
<br />
<span style="color: #FF9900;">//Apro una connessione con il database</span><br />
<span style="color: #0000FF;">$dblink</span> = <span style="color: #0000FF;">mysql_connect</span><span style="color: #000099;">&#40;</span><span style="color: #0000FF;">$host</span>,<span style="color: #0000FF;">$user</span>,<span style="color: #0000FF;">$pass</span><span style="color: #000099;">&#41;</span> or <span style="color: #0000FF;">die</span><span style="color: #000099;">&#40;</span><span style="color: #CC0000;">&quot;Connessione non riuscita: &quot;</span>.<span style="color: #0000FF;">mysql_error</span><span style="color: #000099;">&#40;</span><span style="color: #000099;">&#41;</span><span style="color: #000099;">&#41;</span>;<br />
<br />
<span style="color: #FF9900;">//Seleziono il database</span><br />
<span style="color: #0000FF;">mysql_select_db</span><span style="color: #000099;">&#40;</span><span style="color: #0000FF;">$nome</span>,<span style="color: #0000FF;">$dblink</span><span style="color: #000099;">&#41;</span> or <span style="color: #0000FF;">die</span><span style="color: #000099;">&#40;</span><span style="color: #CC0000;">&quot;Selezione database non riuscita: &quot;</span>.<span style="color: #0000FF;">mysql_error</span><span style="color: #000099;">&#40;</span><span style="color: #000099;">&#41;</span><span style="color: #000099;">&#41;</span>;<br />
<br />
<span style="color: #FF9900;">//Leggo e stampo il valore del campo `field` della tabella `table`</span><br />
<span style="color: #0000FF;">$result</span> = <span style="color: #0000FF;">mysql_query</span><span style="color: #000099;">&#40;</span><span style="color: #CC0000;">&quot;SELECT field FROM table&quot;</span>,<span style="color: #0000FF;">$dblink</span><span style="color: #000099;">&#41;</span> or <span style="color: #0000FF;">die</span><span style="color: #000099;">&#40;</span><span style="color: #CC0000;">&quot;Query non eseguita: &quot;</span>.<span style="color: #0000FF;">mysql_error</span><span style="color: #000099;">&#40;</span><span style="color: #000099;">&#41;</span><span style="color: #000099;">&#41;</span>;<br />
<span style="color: #0000FF;">$row</span> = <span style="color: #0000FF;">mysql_fetch_assoc</span><span style="color: #000099;">&#40;</span><span style="color: #0000FF;">$result</span><span style="color: #000099;">&#41;</span>;<br />
<span style="color: #0000FF;">echo</span> <span style="color: #0000FF;">$row</span><span style="color: #000099;">&#91;</span><span style="color: #CC0000;">'field'</span><span style="color: #000099;">&#93;</span>;<br />
<br />
<span style="color: #FF9900;">//Libero la memoria</span><br />
<span style="color: #0000FF;">mysql_free_result</span><span style="color: #000099;">&#40;</span><span style="color: #0000FF;">$result</span><span style="color: #000099;">&#41;</span>;<br />
<br />
<span style="color: #FF9900;">//Chiudo la connessione con il database</span><br />
<span style="color: #0000FF;">mysql_close</span><span style="color: #000099;">&#40;</span><span style="color: #0000FF;">$dblink</span><span style="color: #000099;">&#41;</span>;</div></div>]]></description>
<pubDate><![CDATA[Fri, 28 Dec 2007 13:49:12 GMT]]></pubDate>
</item>
<item>
<title><![CDATA[MemHT Portal: CMS e Blog Gratuito]]></title>
<link><![CDATA[http://www.scriptips.com/blog_view_4_MemHT-Portal-CMS-e-Blog-Gratuito.html]]></link>
<guid isPermaLink="true"><![CDATA[http://www.scriptips.com/blog_view_4_MemHT-Portal-CMS-e-Blog-Gratuito.html]]></guid>
<description><![CDATA[<strong><a href="http://www.memht.com">MemHT Portal</a></strong> &egrave; un <strong><a href="http://www.memht.com"><strong>CMS e Blog PHP Gratuito</strong></a></strong>, che permette la creazione e la gestione online di siti web con pochi e semplici passaggi. E' completamente <strong>personalizzabile</strong>, <strong>espandibile</strong> e adatto a tutte le esigenze.<br />
<br />
<div align="center"><em><img width="222" height="127" border="0" alt="MemHT Portal" src="http://www.scriptips.com/files/images/memht_portal.png" /></em></div>
<br />
<strong>Caratteristiche principali</strong><br />
- Content management: Articles, Faq, Guides and News divided by topics<br />
- Blog: Posts, Comments, Categories, Archive<br />
- Visual (WYSIWYG) and BBCode text editors<br />
- PDF, RSS feeds syndication, Tags engine and Social bookmarking<br />
- Archive system<br />
- Complete forums addon with private messages support<br />
- Search engine friendly links when mod-rewrite available<br />
- Search engine friendly sitemap (google,msn,yahoo,ask etc)<br />
- Searcg engine friendly pages (customizable description and keywords)<br />
- AJAX based Gallery with zip files importing support<br />
- User groups and rank based access restriction<br />
- File manager with users submission support<br />
- Advanced security system<br />
- Database panel: Optimization and Backup<br />
- Template support<br />
- Statistics, Newsletter manager, Advertising system,<br />
&nbsp; Links directory, Advanced internal search engine and so on<br />
- Feed Aggregator: Create new articles and news from external rss feeds<br />
- CronJobs support for the maintenance class<br />
<br />
<img width="11" height="7" src="http://www.scriptips.com/images/outlink.gif" alt="" /> <a href="http://www.memht.com" target="_blank">MemHT Portal</a><br />
<img width="11" height="7" src="http://www.scriptips.com/images/outlink.gif" alt="" /> <a href="http://www.memht.com/lastrelease.html" target="_blank">Download MemHT Portal<br />
</a>]]></description>
<pubDate><![CDATA[Fri, 28 Dec 2007 10:05:45 GMT]]></pubDate>
</item>
</channel>
</rss>