<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5149419369318837317</id><updated>2011-11-27T15:41:51.770-08:00</updated><category term='facebook'/><category term='xml'/><category term='libri'/><category term='caratteri speciali'/><category term='mysql'/><category term='java'/><category term='caratteri invisibili'/><category term='php'/><category term='strotime'/><category term='explode'/><category term='number_format'/><category term='ore'/><category term='euro'/><category term='file esterni'/><category term='idee'/><category term='posizionamento'/><category term='date'/><category term='carrello elettronico'/><category term='safe mode'/><category term='seo'/><category term='scambio link'/><category term='test'/><category term='condivisione'/><category term='ereg_replace'/><category term='penalizzazione'/><category term='server'/><category term='marketing'/><category term='email marketing'/><category term='strpos'/><category term='data'/><category term='geo localizzazione'/><title type='text'>Raccolta di tutorial, sperimentazioni di script php e css applicati al seo</title><subtitle type='html'>Una serie di codici sperimentati, e quindi funzionanti, di php e css per l'ottimizzazione dei siti web sui motori di ricerca.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-5896452312934615524</id><published>2011-05-09T01:43:00.000-07:00</published><updated>2011-05-09T01:43:53.694-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='geo localizzazione'/><category scheme='http://www.blogger.com/atom/ns#' term='marketing'/><title type='text'>Geo Localizzazione e marketing</title><content type='html'>Grazie a questa chiamata API:&lt;br /&gt;http://api.ipinfodb.com/v3/ip-city/?key=tua api kei&amp;amp;ip=$ip&amp;amp;format=xml è possibile ricavare la città di provenienza del visitatore e proporre una pubblicità mirata in base al luogo di provenienza.&lt;br /&gt;Usata su Itineraridipesca.it per promuovere l'iscrizione alla newsletters dei nostri laghi ai soli utenti di Roma, visto che i nostri laghi sono nella provincia di Roma&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-5896452312934615524?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/5896452312934615524/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2011/05/geo-localizzazione-e-pubblicita.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/5896452312934615524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/5896452312934615524'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2011/05/geo-localizzazione-e-pubblicita.html' title='Geo Localizzazione e marketing'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-5012265121675488754</id><published>2011-04-11T02:35:00.000-07:00</published><updated>2011-04-11T02:35:27.654-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Ricavare le lettere dell'alfabeto con una funzioncina di php</title><content type='html'>utile per scremare una lista di prodotti e/o notizie:&lt;br /&gt;&lt;br /&gt;echo"Riduci per:";&lt;br /&gt;foreach (range('A', 'Z') as $letter)&lt;br /&gt;&amp;nbsp;&amp;nbsp; echo"&lt;a href="http://www.blogger.com/p.php?lettera=$letter\"&gt;$letter&lt;/a&gt; - ";&lt;br /&gt;?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-5012265121675488754?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/5012265121675488754/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2011/04/ricavare-le-lettere-dellalfabeto-con.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/5012265121675488754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/5012265121675488754'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2011/04/ricavare-le-lettere-dellalfabeto-con.html' title='Ricavare le lettere dell&apos;alfabeto con una funzioncina di php'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-3793954944322283885</id><published>2011-04-05T06:31:00.000-07:00</published><updated>2011-04-05T06:31:59.074-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='facebook'/><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><title type='text'>Chiamata xml per fql, conoscere i like, i commenti e gli share di una vostra pagina su Facebook</title><content type='html'>Utile chiamata a fql per conoscere i like, i commenti, i share di una pagina precisa del vostro sito:&lt;br /&gt;&lt;span class="Apple-style-span" style="color: dimgrey; font-family: 'Lucida Grande', Tahoma, Helvetica; font-size: 13px; line-height: 20px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #e3eafc; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(193, 212, 245); border-bottom-style: solid; border-bottom-width: 2px; border-color: initial; border-left-color: rgb(193, 212, 245); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(193, 212, 245); border-right-style: solid; border-right-width: 2px; border-style: initial; border-top-color: rgb(193, 212, 245); border-top-style: solid; border-top-width: 2px; font-family: courier; font-size: 12px; font-style: inherit; font-weight: inherit; letter-spacing: -1px; margin-bottom: 14px; margin-left: 0px; margin-right: 0px; margin-top: 14px; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto; padding-bottom: 15px; padding-left: 15px; padding-right: 15px; padding-top: 15px;"&gt;https://api.facebook.com/method/fql.query?query=select total_count,like_count,comment_count,share_count,click_count from link_stat where url='&lt;a href="http://www.itineraridipesca.it/laghetto_pesca.php?lago=138"&gt;http://www.itineraridipesca.it/laghetto_pesca.php?lago=138&lt;/a&gt;'&amp;amp;format=json&lt;/pre&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #e3eafc; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(193, 212, 245); border-bottom-style: solid; border-bottom-width: 2px; border-color: initial; border-left-color: rgb(193, 212, 245); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(193, 212, 245); border-right-style: solid; border-right-width: 2px; border-style: initial; border-top-color: rgb(193, 212, 245); border-top-style: solid; border-top-width: 2px; font-family: courier; font-size: 12px; font-style: inherit; font-weight: inherit; letter-spacing: -1px; margin-bottom: 14px; margin-left: 0px; margin-right: 0px; margin-top: 14px; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto; padding-bottom: 15px; padding-left: 15px; padding-right: 15px; padding-top: 15px;"&gt;Usata da noi per organizzare una gara virtuale tra strutture sportive.&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-3793954944322283885?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/3793954944322283885/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2011/04/chiamata-xml-per-fql-conoscere-i-like-i.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/3793954944322283885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/3793954944322283885'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2011/04/chiamata-xml-per-fql-conoscere-i-like-i.html' title='Chiamata xml per fql, conoscere i like, i commenti e gli share di una vostra pagina su Facebook'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-6870590033586385403</id><published>2011-03-22T02:31:00.000-07:00</published><updated>2011-03-22T02:32:09.024-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ore'/><category scheme='http://www.blogger.com/atom/ns#' term='date'/><title type='text'>Ricavare minuti in differenza di due date</title><content type='html'>Utile script se si vuole ricavare il numero di minuti confrontando due date:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$data_o=date("Y-m-d H:i:s",mktime(date("H"),date("i"),0,date("m"),date("d"),date("Y")));&lt;br /&gt;$data_t=date("Y-m-d",mktime(date("H"),date("i"),0,date("m"),date("d"),date("Y")));&lt;br /&gt;echo"$data_o";&lt;br /&gt;$to_time=strtotime("$data_t 12:00:00");&lt;br /&gt;$from_time=strtotime("$data_o");&lt;br /&gt;&lt;br /&gt;echo round(abs($to_time - $from_time) / 60,2)." minute";&lt;br /&gt;&lt;br /&gt;if($from_time&amp;gt;$to_time){&lt;br /&gt;echo"Maggiore";&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;Usato per visualizzare un banner per un lasso di tempo determinato&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-6870590033586385403?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/6870590033586385403/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2011/03/ricavare-minuti-in-differenza-di-due.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6870590033586385403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6870590033586385403'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2011/03/ricavare-minuti-in-differenza-di-due.html' title='Ricavare minuti in differenza di due date'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-1935762626240312952</id><published>2011-01-13T03:03:00.000-08:00</published><updated>2011-01-13T07:13:33.384-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='seo'/><title type='text'>Da quarto a oltre centesimo posto.</title><content type='html'>Dopo un'ottima posizione, quarta su 27.300 risultati, il sito www.mulinellimitchell.it è scivolato oltre la centesima posizione. Vediamo se con un semplice collegamento per la combinazione&amp;nbsp;&lt;a href="http://www.mulinellimitchell.it/"&gt;mulinelli mitchell&lt;/a&gt;&amp;nbsp;il sito si riprende la sua posizione originale, calcolando che la frase in questione è presente anche su un altro sito in visibilità non proprio trasparente. Al 13 gennaio si presenta oltre la centesima posizione, le azione saranno quelle di togliere un collegamento "sporco" e aggiungere un link pulito, come descritto sopra. Per i risultati vi rimando a questo &lt;a href="https://docs0.google.com/document/d/13HtP21MmqjrUbVF9iFRoVVqfZJoBl6QhdN89ccsyMX8/edit#" target="_blank"&gt;link&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-1935762626240312952?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/1935762626240312952/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2011/01/da-quarto-oltre-centesimo-posto.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/1935762626240312952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/1935762626240312952'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2011/01/da-quarto-oltre-centesimo-posto.html' title='Da quarto a oltre centesimo posto.'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-4996945400884207509</id><published>2011-01-11T08:21:00.000-08:00</published><updated>2011-01-13T07:18:13.351-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='seo'/><title type='text'>Prove di seo, sperimentazioni</title><content type='html'>&lt;span class="Apple-style-span" style="color: #cccccc;"&gt;&lt;span id="internal-source-marker_0.2036423054523766" style="background-color: transparent; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Prove di indicizzazione per il sito &lt;/span&gt;&lt;span style="background-color: transparent; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;www.legocity.it&lt;/span&gt;&lt;span style="background-color: transparent; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; per la &amp;nbsp;parola: &lt;a href="http://www.legocity.it/" target="_blank"&gt;lego city&lt;/a&gt;, oltre un milione e mezzo di competitors. Come contenuti un breve testo di presentazione e un lavoro su title e description. Dopo una veloce scalata per un piazzamento in prima pagina il sito è retrocesso, un ritocco dei css e dei link interni ed in entrata dovrebbero bastare a riportare il sito nelle prime pagine. La stessa cosa è successa per &lt;/span&gt;&lt;span style="background-color: transparent; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"&gt;www.mulinellishimano.it&lt;/span&gt;&lt;span style="background-color: transparent; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; per la parola &lt;a href="http://www.mulinellishimano.it/" target="_blank"&gt;mulinelli shimano&lt;/a&gt;, dopo un buon rendimento iniziale il sito è scalato oltre la decima pagina, ritoccato, si è ripreso la quarta posizione.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #cccccc;"&gt;&lt;span style="background-color: transparent; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Altra parola molto interessante e affollata è stata &lt;a href="http://www.giochipesca.it/" target="_blank"&gt;giochi pesca&lt;/a&gt;, per il sito www.giochipesca.it fermo in sette giorni in terza pagina, trentunesima posizione al 11/01/2011&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #cccccc;"&gt;&lt;span style="background-color: transparent; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;I siti sono stati creati unendo le API di Ebay e quelle di GoogleMap e piccole applicazioni di Facebook.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #cccccc;"&gt;&lt;span style="background-color: transparent; font-family: Arial; font-size: 11pt; font-style: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Legocity.it dopo solo 5 giorni con alcuni ritocchi al css è ritornato in prima pagina per la frase lego city, questi i&lt;a href="https://docs.google.com/document/pub?id=14Z1XB5jOf4UUXn3ZhUOKMi51Oy0YYNg_tg8RBojyjIA" target="_blank"&gt; dati&lt;/a&gt;. Vediamo se scivola di nuovo....&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-4996945400884207509?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/4996945400884207509/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2011/01/prove-di-seo-sperimentazioni.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/4996945400884207509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/4996945400884207509'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2011/01/prove-di-seo-sperimentazioni.html' title='Prove di seo, sperimentazioni'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-8002124145453238219</id><published>2009-07-15T09:41:00.000-07:00</published><updated>2009-07-15T09:52:11.925-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='email marketing'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Estrarre la data di nascita dei clienti per auguri di compleanno</title><content type='html'>Ottima strategia di e-mail marketing quella di memorizzare per poi visualizzare le date di compleanno dei clienti. Con una piccola applicazione in php possiamo visualizzare i clienti che compiono gli anni oggi e nei prossimi 5 giorni. Clienti a cui possiamo mandare dei semplici auguri o gli auguri e delle &lt;b&gt;offerte particolari se hanno scelto di ricevere delle promozioni&lt;/b&gt; dal nostro sito.&lt;div&gt;Vedia la funzione php:&lt;/div&gt;&lt;div&gt;- faccio la connessione al mio db&lt;/div&gt;&lt;div&gt;- mi creo la query per oggi e i 5 giorni successivi quindi:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;for($d=0; $d&lt;5;&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;$data=date("m-d",mktime(date("H"),date("i")-15,0,date("m"),date("d")+"$d",date("Y")));##la data di oggi che si incrementa grazie al for###&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;$sql = "SELECT *&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;FROM utenti WHERE data LIKE '%$data%' ORDER BY id_ute DESC&lt;/div&gt;&lt;div&gt;        ";&lt;/div&gt;&lt;div&gt;##########visualizzo###########################################&lt;/div&gt;&lt;div&gt;$risultato = @mysql_query($sql,$connessione)&lt;/div&gt;&lt;div&gt;        or die("Impossibile eseguire l'interrogazione.");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;while ($riga = mysql_fetch_array($risultato)) {&lt;/div&gt;&lt;div&gt;&lt;div&gt;$id_ute= $riga['id_ute'];&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;$nome = $riga['nome'];&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;$cognome = $riga['cognome'];&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;$data = $riga['data'];&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;$off = $riga['off'];####qui vedo se il cliente ha scelto di ricevere delle offerte##&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;$data = explode("-",$data);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;if (in_array("$cognome $nome", $utente)){###questo mi permette di scartare i clienti ripetuti###&lt;/div&gt;&lt;div&gt;        }else{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;		&lt;/span&gt;echo"&lt;/div&gt;&lt;div&gt;        &lt;/div&gt;&lt;div&gt;        $cognome $nome&lt;/div&gt;&lt;div&gt;        $data[2]/$data[1]/$data[0]&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;    $off&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;    &lt;#a href=\"mostra_utente.php&amp;amp;id_ute=$id_ute\"#&gt;Visualizza&lt;#/a#&gt;&lt;/div&gt;&lt;div&gt;        &lt;/div&gt;&lt;div&gt;        ";&lt;/div&gt;&lt;div&gt;       }&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;   $utente[ ]="$cognome $nome";###riempio l'array per controllare se ho cliente ripetuti##&lt;/div&gt;&lt;div&gt;       }&lt;/div&gt;&lt;div&gt;#########fine visualizzo#######################&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Utile se si vuole fare una campagna email marketing molto accurata. Nella scheda cliente si potrebbe avere già una mail pronta con gli auguri dove aggiungere i prodotti + visti dal cliente, ma non acquistati, ad un prezzo promozionale.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-8002124145453238219?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/8002124145453238219/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/07/estrarre-la-data-di-nascita-dei-clienti.html#comment-form' title='1 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/8002124145453238219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/8002124145453238219'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/07/estrarre-la-data-di-nascita-dei-clienti.html' title='Estrarre la data di nascita dei clienti per auguri di compleanno'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-8263119245946899612</id><published>2009-07-10T03:51:00.000-07:00</published><updated>2009-07-10T03:59:24.481-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='facebook'/><category scheme='http://www.blogger.com/atom/ns#' term='condivisione'/><title type='text'>Facebook: foto degli iscritti al tuo gruppo o i tuoi amici</title><content type='html'>Semplice applicazione per visualizzare le immagini degli iscritti al tuo gruppo su FaceBook o semplicemente per visualizzare i tuoi amici:&lt;div&gt;&lt;div&gt;&lt;#script src="http://www.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"#&gt;&lt;#/script#&gt;&lt;/div&gt;&lt;div&gt;&lt;#script type="text/javascript"&gt;FB.init("Tua_Api_Key", "");&lt;/script#&gt;&lt;/div&gt;&lt;div&gt;&lt;#div align="center"#&gt;&lt;/div&gt;&lt;div&gt;&lt;#fb:fan profile_id="id del tuo profilo/gruppo" stream="0" connections="8" width="240" height="260px"#&gt;&lt;/fb:fan#&gt;&lt;/div&gt;&lt;div&gt;Lavornado sulle variabili è possibile modificare la visualizzazione come + si preferisce in particolare:&lt;/div&gt;&lt;div&gt;- stream: se 1 visualizza le varie modifiche al proprio profilo. Se 0 toglie il riquadro.&lt;/div&gt;&lt;div&gt;- connections: numero di amici da visualizzare.&lt;/div&gt;&lt;div&gt;- width: larghezza del box. &lt;/div&gt;&lt;div&gt;- height: altezza del box. Da variare in base alla visualizzazioni&lt;/div&gt;&lt;div&gt;Così come impostato il box visualizza due righe da 4 img.&lt;/div&gt;&lt;div&gt;Ottimo per promuovere la propria pagina web su FB.&lt;/div&gt;&lt;div&gt;In &lt;a href="http://www.itineraridipesca.it/" target="_blank"&gt;questo sito&lt;/a&gt;, nella colonna di destra, un esempio.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-8263119245946899612?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/8263119245946899612/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/07/facebook-fot-degli-iscritti-al-tuo.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/8263119245946899612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/8263119245946899612'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/07/facebook-fot-degli-iscritti-al-tuo.html' title='Facebook: foto degli iscritti al tuo gruppo o i tuoi amici'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-4072041132108767509</id><published>2009-07-06T02:57:00.001-07:00</published><updated>2009-07-06T03:00:08.087-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='condivisione'/><title type='text'>Bottone AddThis monitorato come Analitycs</title><content type='html'>Ecco come monitorare il proprio bottone/applicazione AddThis, con richiesta codice al sito:&lt;div&gt;&lt;div&gt;&lt;#div class="addthis_toolbox addthis_default_style"#&gt;&lt;/div&gt;&lt;div&gt;&lt;#a href="http://www.addthis.com/bookmark.php?v=250" class="addthis_button_compact"&gt;&lt;/div&gt;&lt;div&gt;#Invita un amico a vedere questa pagina#&lt;/div&gt;&lt;div&gt;&lt;#img src="http://s7.addthis.com/static/btn/sm-plus.gif" width="14" height="14" alt="Bookmark and Share" style="border:0" align="top"#/&gt;&lt;/div&gt;&lt;div&gt;&lt;#/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Grazie a questa funzione puoi: invitare un amico a vedere questa pagina, stamparla, aggiungerla ai tuoi preferiti, inserirla nel tuo profilo Facebook, MySpace, Twitter e altri...&lt;/div&gt;&lt;div&gt;&lt;#/div&gt;&lt;/div&gt;&lt;div&gt;&lt;#script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=&lt;b&gt;tuo cod personale&lt;/b&gt;"#&gt;&lt;#/script#&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-4072041132108767509?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/4072041132108767509/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/07/bottone-addthis-monitorato.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/4072041132108767509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/4072041132108767509'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/07/bottone-addthis-monitorato.html' title='Bottone AddThis monitorato come Analitycs'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-6121668429042476553</id><published>2009-07-02T07:14:00.000-07:00</published><updated>2009-07-02T07:21:47.303-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Java: obbligo di inserire N caratteri in textarea</title><content type='html'>Utile script che obbliga l'utente ad inserire almeno 350 caratteri nella textarea del form.&lt;br /&gt;&lt;#script type="text/javascript"#&gt;&lt;br /&gt;#&lt;br /&gt;function controlla() {&lt;br /&gt;if (document.getElementById("descrizione").value.length &lt;&gt;&lt;br /&gt;di seguito l'impostazione del form:&lt;br /&gt;&lt;#form action="azione.php" method="post" class="bianco" onsubmit="return controlla();"#&gt;&lt;br /&gt;&lt;#textarea name="descrizione" cols="35" rows="17" id="descrizione"  class="inputbox"#&gt;&lt;br /&gt;&lt;#input type="submit" value="Segnala" class="inputbox" /#&gt;&lt;br /&gt;&lt;#/form#&gt;&lt;br /&gt;Un esempio presente &lt;a href="http://www.itineraridipesca.it/segnala_itinerario.php"&gt;qui&gt;&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-6121668429042476553?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/6121668429042476553/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/07/java-obbligo-di-inserire-n-caratteri-in.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6121668429042476553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6121668429042476553'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/07/java-obbligo-di-inserire-n-caratteri-in.html' title='Java: obbligo di inserire N caratteri in textarea'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-6980222049899410611</id><published>2009-06-22T03:36:00.000-07:00</published><updated>2009-06-22T03:41:41.543-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Individuare e visualizzare file in cartella</title><content type='html'>Semplice script per individuare i file presenti in una cartella precisa del vostro sito web. Se immagini le visualizziamo:&lt;br /&gt;&lt;br /&gt;$cartella = opendir('../img_news'); ###la vostra cartella#########&lt;br /&gt;while ($file = readdir($cartella)) {&lt;br /&gt;if ( $file == ".." || $file == ".") {&lt;br /&gt;}else{&lt;br /&gt;echo"&lt;\img src=../img_news/$file&gt;&lt;br /&gt;###qui visualizzo###&lt;br /&gt;&lt;br /&gt;http://www.tuosito.com/img_news/$file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Script utile se si vuole avere l'elenco dei file presenti in una cartella&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-6980222049899410611?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/6980222049899410611/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/individuare-e-visualizzare-file-in.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6980222049899410611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6980222049899410611'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/individuare-e-visualizzare-file-in.html' title='Individuare e visualizzare file in cartella'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-4936506003870754117</id><published>2009-06-11T03:20:00.000-07:00</published><updated>2009-06-11T03:48:08.444-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='posizionamento'/><category scheme='http://www.blogger.com/atom/ns#' term='penalizzazione'/><title type='text'>Penalizzazione per troppi link</title><content type='html'>Da un anno circa la tendeza di Google è quella di penalizzare i siti web che vendono spazi per inserire link di altri siti web.&lt;br /&gt;Da questa constatazione ci siamo accorti sulla nostra pelle che Googl e ci penalizzava un nostro sito perchè aveva un mega menù con oltre 100 link. Tolti i link, attinenti all'argomento del sito, ma troppo dispersivi, le cose sono tornate normali.&lt;br /&gt;Leggendo nel web, questa tendenza di penalizzazione sembra colpire anche i blog. Che hanno troppi link interni con i tag degli argomenti del blog.&lt;br /&gt;Quindi il nostro consiglio è quello di togliere i troppi link e quindi di dividere il sito in sotto cartelle specifiche per ogni argomento trattato.&lt;br /&gt;&lt;a href="http://www.xml-sitemaps.com/se-bot-simulator.html" target="_blank"&gt;Questa pagina&lt;/a&gt; per calcolare i link interni del proprio sito web.&lt;br /&gt;Un altro fattore che abbiamo notato e molto discusso, è lo scambio link con altri siti web. Avere il link del proprio sito web su troppe pagine del un'altro sito sicuramente è visto come spam. Per controllare la presenza di link vi rimandiamo a &lt;a href="https://www.google.com/webmasters/tools/home?hl=it"&gt;GoogleWebMasterTool&lt;/a&gt; -&gt; il tuo sito web -&gt; link che rimandano al tuo sito. Il problema rimane la presenza del link del nostro sito su troppe pagine del sito ospitante. Succede infatti che alcuni siti web abbiano delle parti fissi che girano su tutte le pagine del sito. Se il sito ospitante è uno shop che ha 1000 prodotti il nostro link sarà nella pagina di tutti e 100o prodotti, generando così uno spam.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-4936506003870754117?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/4936506003870754117/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/penalizzazione-per-troppi-link.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/4936506003870754117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/4936506003870754117'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/penalizzazione-per-troppi-link.html' title='Penalizzazione per troppi link'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-6267176795017302837</id><published>2009-06-11T03:04:00.000-07:00</published><updated>2009-06-11T03:27:36.671-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='posizionamento'/><category scheme='http://www.blogger.com/atom/ns#' term='penalizzazione'/><title type='text'>6 regole per un indicizzare una pagina web</title><content type='html'>Da &lt;a href="http://www.seomoz.org/" target="_blank"&gt;SeoMoz&lt;/a&gt; (forse il sito SEO + autorevole) ecco 6 regole fondamentali per indicizzare una pagina web e per non farla bannare da Google. Inutile dire che queste regole verrano usate per tutto il nostro sito web:&lt;br /&gt;&lt;br /&gt;Page File Size No more than 150 kilobytes (Before Images, CSS and other Attachments)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Numero di link interni per pagina:&lt;/span&gt; non + di 100. Consigliati 90. &lt;a href="http://www.xml-sitemaps.com/se-bot-simulator.html" target="_blank"&gt;Qui&lt;/a&gt; è possibile controllare il numero di link presenti nella pagina del proprio sito web. Il discorso dei link è fondamentale anche per un problema di penalizzazione su Google. Vi rimandiamo al nostro articolo sul "Megamenù".&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Lunghezza "title tag":&lt;/span&gt; non più di 70. Consigliati 65.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Lunghezza "Meta Description":&lt;/span&gt; non più di 155. Consigliati 150.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Come scrivere l'indirizzo url:&lt;/span&gt;&lt;br /&gt;- Con parametri (per indirizzi dinamici php, asp, etc...)&lt;br /&gt;Al max due parametri:&lt;br /&gt;Link inesatto:&lt;br /&gt;http://www.mysite.com/brands.php?object=1&amp;amp;type=2&amp;amp;kind=3&amp;amp;node=5&amp;amp;arg=6&lt;br /&gt;Link perfetto:&lt;br /&gt;http://www.mysite.com/brands.php?nike&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Utilizzo di sottocartelle&lt;/span&gt;&lt;br /&gt;Non + di  4&lt;br /&gt;&lt;br /&gt;Cattivo esempio:&lt;br /&gt;http://www.mysite.com/people/places/things/noun/danny/car&lt;br /&gt;&lt;br /&gt;Ottimo esempio:&lt;br /&gt;http://www.mysite.com/people/danny/&lt;br /&gt;&lt;br /&gt;Rispettare queste semplici regole ci aiuterà molto ad indicizzare nel migliore dei modi il nostro sito web.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-6267176795017302837?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/6267176795017302837/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/6-regole-per-un-indicizzare-una-pagina.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6267176795017302837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6267176795017302837'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/6-regole-per-un-indicizzare-una-pagina.html' title='6 regole per un indicizzare una pagina web'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-3475141750339975240</id><published>2009-06-02T07:09:00.000-07:00</published><updated>2009-07-02T07:13:53.076-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Java: script back, torna indietro</title><content type='html'>Semplice script che rimanda alla pagina precedentemente visitata dall'utente. E sempre bene permettere all'utente di tornare indietro....&lt;br /&gt;&lt;#img src="img/torna_dietro.jpg" align="absmiddle"#&gt;&lt;# a href="javascript: history.go(-1)"#&gt;Torna indietro&lt;#/a&gt;&lt;!--#--&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-3475141750339975240?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/3475141750339975240/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/java-script-back-torna-indietro.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/3475141750339975240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/3475141750339975240'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/java-script-back-torna-indietro.html' title='Java: script back, torna indietro'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-1400301251638752474</id><published>2009-05-12T00:47:00.000-07:00</published><updated>2009-06-12T00:53:28.413-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>MySQL: Query tra due date</title><content type='html'>Questa query ci aiuta a estrapolare tutti i record che sono stati inseriti in una arco di tempo ben definito:&lt;br /&gt;$sql = "SELECT *&lt;br /&gt;        FROM catture WHERE data_mese between 20090501 and 20090524 and appro =\"si\" AND gara=\"2\" ORDER BY score_v_m DESC, score_m DESC, data_mese ASC";&lt;br /&gt;&lt;br /&gt;Inutile dire che qundo l'utente inserisce l'informazione il db deve memorizzare il giorno di inserimento.&lt;br /&gt;&lt;br /&gt;Usata per una gara di pesca virtuale presente &lt;a href="http://www.itineraridipesca.it/classifica_maggio_2009.php" target="_blank"&gt;qui &gt;&gt;&lt;/a&gt;&lt;br /&gt;In questo caso il db ci darà tutte le catture inserite ed approvate dal 01/05/2009 al 24/05/2009, le ordine per due diversi punteggio, dandoci così il primo classificato.&lt;br /&gt;Per tutti quelli che pensano di creare una gara e classifica virtuale.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-1400301251638752474?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/1400301251638752474/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/mysql-query-tra-due-date.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/1400301251638752474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/1400301251638752474'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/mysql-query-tra-due-date.html' title='MySQL: Query tra due date'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-613861571759795313</id><published>2009-05-12T00:39:00.000-07:00</published><updated>2009-06-12T00:54:27.764-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Thumbnail al volo con php</title><content type='html'>Script veloce, veloce che ci permette di ridimensionare le img inseriti nel nostro sito con misura impostata nell'url dell'img:&lt;br /&gt;########inizio codice###########&lt;br /&gt;if (!isset($image)){ // if not generate an error image&lt;br /&gt;  $img = ImageCreate(100, 100);&lt;br /&gt;  $red = ImageColorAllocate($img, 255, 0, 0);&lt;br /&gt;  $yellow = ImageColorAllocate($img, 255, 255, 0);&lt;br /&gt;  ImageString($img, 5, 20, 20, "Bad", $yellow);&lt;br /&gt;  ImageString($img, 5, 20, 40, "size", $yellow);&lt;br /&gt;  ImageString($img, 5, 20, 60, "given!", $yellow);&lt;br /&gt;  ImagePNG($img);&lt;br /&gt;  ImageDestroy($img);&lt;br /&gt;  exit();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// attempt to load the big image&lt;br /&gt;if (!$bigimage = @ImageCreateFromJPEG($image)) {    // if loading fails&lt;br /&gt;  $img = ImageCreate(80, 80);                    // generate an error&lt;br /&gt;  $red = ImageColorAllocate($img, 255, 0, 0);        // image&lt;br /&gt;  $yellow = ImageColorAllocate($img, 255, 255, 0);&lt;br /&gt;  ImageString($img, 5, 20, 20, "Image", $yellow);&lt;br /&gt;  ImageString($img, 5, 20, 40, "not", $yellow);&lt;br /&gt;  ImageString($img, 5, 20, 60, "found!", $yellow);&lt;br /&gt;  ImagePNG($img);&lt;br /&gt;  ImageDestroy($img);&lt;br /&gt;  exit();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// all seems to be OK so start the processing&lt;br /&gt;// create the new image using the tnsize parameter&lt;br /&gt;$tnimage = imagecreatetruecolor($tnsize, $tnsize);&lt;br /&gt;// allocate the background colour for the thumbnail&lt;br /&gt;$darkblue = imagecolorallocatealpha($tnimage, 0, 0, 127);&lt;br /&gt;// set the background as transparent&lt;br /&gt;imagecopyresampled($tnimage,$darkblue);&lt;br /&gt;imagefilledrectangle($tnimage, 0, 0, $destW, $destH, $darkblue);&lt;br /&gt;// get the parameters of the big image&lt;br /&gt;$sz = GetImageSize($image);&lt;br /&gt;// load our internal variables&lt;br /&gt;$x = $sz[0];    // big image width&lt;br /&gt;$y = $sz[1];    // big image height&lt;br /&gt;// find the larger dimension&lt;br /&gt;if ($x&gt;$y) {    // if it is the width then&lt;br /&gt;  $dx = 0;                    // the left side of the new image&lt;br /&gt;  $w = $tnsize;                // the width of the new image&lt;br /&gt;  $h = ($y / $x) * $tnsize;    // the height of the new image&lt;br /&gt;  $dy = 0; // the top of the new image&lt;br /&gt;}else{    // if the height is larger then&lt;br /&gt;  $dy = 0;                    // the top of the new image&lt;br /&gt;  $h = $tnsize;                // the height of the new image&lt;br /&gt;  $w = ($x / $y) * $tnsize;    // the width of the new image&lt;br /&gt;  $dx = 0;    // the left edgeof the new image&lt;br /&gt;}&lt;br /&gt;if ($w&gt;$h) {&lt;br /&gt;$tnimage = imagecreatetruecolor($w, $h);&lt;br /&gt;}else{&lt;br /&gt;$tnimage = imagecreatetruecolor($w, $h);&lt;br /&gt;}&lt;br /&gt;// copy the resized version into the thumbnal image&lt;br /&gt;imageCopyResampled($tnimage, $bigimage, $dx, $dy, 0, 0, $w, $h, $x, $y);&lt;br /&gt;// generate the PNG image&lt;br /&gt;ImagePNG($tnimage);&lt;br /&gt;// release the memory used by the thumbnail image&lt;br /&gt;ImageDestroy($tnimage);&lt;br /&gt;// release the memory used by the original big image&lt;br /&gt;ImageDestroy($bigimage);&lt;br /&gt;// all done!&lt;br /&gt;####fine cod#########################&lt;br /&gt;&lt;br /&gt;l'immagine la richiamiamo così:&lt;br /&gt;img src="tnp.php?big.jpg&amp;amp;tnsize=150" dove tnp.php è il file dove metteremo il codice sopra riportato sopra. e la var tnsize e la misura max che vogliamo dare alla nostra img.&lt;br /&gt;Utilissimo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-613861571759795313?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/613861571759795313/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/thumbnail-al-volo-con-php.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/613861571759795313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/613861571759795313'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/thumbnail-al-volo-con-php.html' title='Thumbnail al volo con php'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-2003672422990032372</id><published>2009-05-11T04:04:00.000-07:00</published><updated>2009-06-12T00:54:03.138-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='strpos'/><title type='text'>strpos: controllare se una stringa contiene uno specifico carattere</title><content type='html'>Spesso vogliamo controllare se i nostri utenti inseriscono la "@" nel proprio indirizzo mail. Quindi ci risulta utile questo semplice script:&lt;br /&gt;$email="tuamailiol.it";&lt;br /&gt;if(strpos($email,"@")){&lt;br /&gt;$stato_email="abbiamo la @";&lt;br /&gt;}else{&lt;br /&gt;$stato_email="non abbiamo la @";&lt;br /&gt;}&lt;br /&gt;Stamperà: "non abbiamo la @"&lt;br /&gt;&lt;br /&gt;E' possibile anche usare "ereg" ma a nostro parere la funzione strpos è migliore. Vediamo un esempio:&lt;br /&gt;if(ereg("@.*",$email)){&lt;br /&gt;$stato_email="abbiamo la @";&lt;br /&gt;}else{&lt;br /&gt;$stato_email="non abbiamo la @";&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-2003672422990032372?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/2003672422990032372/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/strpos-controllare-se-una-stringa.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/2003672422990032372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/2003672422990032372'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/strpos-controllare-se-una-stringa.html' title='strpos: controllare se una stringa contiene uno specifico carattere'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-7539746897308819591</id><published>2009-05-11T03:49:00.000-07:00</published><updated>2009-06-11T03:56:37.132-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ereg_replace'/><category scheme='http://www.blogger.com/atom/ns#' term='explode'/><title type='text'>ereg_replace: ottenere una parte di stringa</title><content type='html'>Esempio interessante per ottenere una parte di stringa:&lt;br /&gt;$nostro_testo="testo in italiano da qui: testo in inglese";&lt;br /&gt;usando -&gt;&lt;br /&gt;$nostro_testo = ereg_replace("\da qui:.*\$", "", $nostro_testo);&lt;br /&gt;e avremo in visualizzazione: "testo in italiano"&lt;br /&gt;&lt;br /&gt;Utile magari per siti in multilingua per una sola text area.&lt;br /&gt;In alternativa si può usare explode per cui:&lt;br /&gt;$nostro_testo="testo in italiano da qui: testo in inglese da qui: testo in spagnolo";&lt;br /&gt;$nostro_testo = explode("da qui:", $nostro_testo);&lt;br /&gt;echo"$nostro_testo[0]"; testo in italiano&lt;br /&gt;echo"$nostro_testo[1]"; testo in inglese&lt;br /&gt;echo"$nostro_testo[2]"; testo in spagnolo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-7539746897308819591?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/7539746897308819591/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/eregreplace-ottenere-una-parte-di.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/7539746897308819591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/7539746897308819591'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/06/eregreplace-ottenere-una-parte-di.html' title='ereg_replace: ottenere una parte di stringa'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-1120719623980368204</id><published>2009-05-05T09:04:00.000-07:00</published><updated>2009-05-05T09:10:03.870-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='test'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Un server per php, in locale</title><content type='html'>Questo post lo dedichiamo a chi decide di avvicinarsi al php e mysql, e per questo necessita di un server dove poter testare i propri script, magari quelli che ha trovato nel nostro blog.&lt;br /&gt;Per fare questo non serve, almeno per l'inizio, uno spazio web on-line...basta installare easyphp, un programma, in italiano, che con dei semplice click ci permetterà di trasformare il nostro computer un vero e proprio server, con quasi tutte le estensioni php, mysql ed altro....&lt;br /&gt;&lt;a href="http://www.evulon.net/request.php?295" target="_blank"&gt;Qui il link per EasyPhp&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-1120719623980368204?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/1120719623980368204/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/un-server-per-php-in-locale.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/1120719623980368204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/1120719623980368204'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/un-server-per-php-in-locale.html' title='Un server per php, in locale'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-7797932101669288042</id><published>2009-05-05T07:01:00.000-07:00</published><updated>2009-05-05T07:06:16.266-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='libri'/><category scheme='http://www.blogger.com/atom/ns#' term='seo'/><category scheme='http://www.blogger.com/atom/ns#' term='idee'/><category scheme='http://www.blogger.com/atom/ns#' term='marketing'/><title type='text'>184 idee di markentig, Marketing per seo. Per avere un'idea</title><content type='html'>Segnaliamo questo strepitoso libro di marketing:&lt;br /&gt;"&lt;span style="font-weight: bold;font-size:100%;" &gt;I piccoli saranno i primi. 184 sorprendenti idee di marketing&lt;/span&gt;" di &lt;a href="http://www.sethgodin.com/sg/" target="_blank"&gt;Seth Godin&lt;/a&gt; grande uomo di marketing, una macchina di idee....&lt;br /&gt;Per chi cerca ispirazione o per chi cerca una motivazione. Molto incentrato sulla forza del web ed in particolare sul social marketing applicato ai network.&lt;br /&gt;Da comprare e da leggere in un sol colpo.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-7797932101669288042?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/7797932101669288042/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/184-idee-di-markentig-marketing-per-seo.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/7797932101669288042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/7797932101669288042'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/184-idee-di-markentig-marketing-per-seo.html' title='184 idee di markentig, Marketing per seo. Per avere un&apos;idea'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-8003123572266305713</id><published>2009-05-05T06:50:00.000-07:00</published><updated>2009-05-05T06:52:39.115-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='strotime'/><category scheme='http://www.blogger.com/atom/ns#' term='date'/><title type='text'>Differenza tra date, php</title><content type='html'>Per sapere quanto è durato un evento:&lt;br /&gt;&lt;br /&gt;$data_i="2009-04-21"; #data inizio#&lt;br /&gt;$data_o="2009-05-05"; #data odierna#&lt;br /&gt;&lt;br /&gt;$differenza=(strtotime("$data_o") - strtotime("$data_i"))/(86400);&lt;br /&gt;&lt;br /&gt;Molto utile per la programmazione con le date&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-8003123572266305713?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/8003123572266305713/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/differenza-tra-date-php.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/8003123572266305713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/8003123572266305713'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/differenza-tra-date-php.html' title='Differenza tra date, php'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-5621166838098569763</id><published>2009-05-05T06:44:00.000-07:00</published><updated>2009-05-05T06:49:46.220-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='explode'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='date'/><title type='text'>Explode date, ottenere giorno mese ed anno da date. PHP</title><content type='html'>Un piccolo explode per ottenere giorno, mese ed anno dal campo date così strutturato: gg-mm-aaaa&lt;br /&gt;&lt;br /&gt;la data di oggi:&lt;br /&gt;$data_o_v=date ("Y-m-d",mktime(date("H"),date("i")-15,0,date("m"),date("d"),date("Y")));&lt;br /&gt;mi da: 2009-05-05&lt;br /&gt;mi tiro fuori i campi:&lt;br /&gt;&lt;br /&gt;$data_o=explode("-", $data_o_v); #uso la variabile data_o perchè data_o_v mi potrebbe riservire#&lt;br /&gt;quindi ho:&lt;br /&gt;echo"$data_o[2]/$data_o[1]/$data_o[0]";  -&gt; 05/05/2009&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-5621166838098569763?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/5621166838098569763/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/explode-date-ottenere-giorno-mese-ed.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/5621166838098569763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/5621166838098569763'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/explode-date-ottenere-giorno-mese-ed.html' title='Explode date, ottenere giorno mese ed anno da date. PHP'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-6091375181807638825</id><published>2009-05-05T06:06:00.000-07:00</published><updated>2009-05-05T06:16:24.538-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='seo'/><category scheme='http://www.blogger.com/atom/ns#' term='scambio link'/><category scheme='http://www.blogger.com/atom/ns#' term='condivisione'/><title type='text'>Digg buttom, condividere le proprie pagine, in java. Seo</title><content type='html'>Senza usare un riga di codice dinamico ecco un bottone java per condivedere tutte le pagine del proprio sito sul social network Digg.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;N.b: i ... equivalgono a &lt; &gt;&lt;/span&gt;&lt;br /&gt;...script type="text/javascript...&lt;br /&gt;digg_url = 'WEBSITE_URL'; #########questo va tolto##############&lt;br /&gt;digg_bgcolor = '#ff9900';&lt;br /&gt;digg_skin = 'compact';&lt;br /&gt;digg_window = 'new';&lt;br /&gt;.../script...&lt;br /&gt;...script src="http://digg.com/tools/diggthis.js" type="text/javascript"... .../script...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;il risultato di seguito:&lt;/span&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;digg_bgcolor = '#ff9900';&lt;br /&gt;digg_skin = 'compact';&lt;br /&gt;digg_window = 'new';&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;Partendo dal concetto che la &lt;span style="font-weight: bold;"&gt;condivisione sarà il punto fondamentale per l'indicizzazione&lt;/span&gt; dei propri siti web.&lt;br /&gt;Non dimentichiamoci di creare un account su Digg.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-6091375181807638825?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/6091375181807638825/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/digg-buttom-condividere-le-proprie.html#comment-form' title='1 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6091375181807638825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6091375181807638825'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/digg-buttom-condividere-le-proprie.html' title='Digg buttom, condividere le proprie pagine, in java. Seo'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-8851114727401059826</id><published>2009-05-05T04:08:00.000-07:00</published><updated>2009-05-05T04:11:50.872-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='caratteri speciali'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='caratteri invisibili'/><title type='text'>Convertire caratteri speciali, php</title><content type='html'>Come togliere i &lt;span style="font-weight: bold;"&gt;caratteri speciali&lt;/span&gt; e spesso e volentieri &lt;span style="font-weight: bold;"&gt;invisibili&lt;/span&gt; che disturbano il nostro codice:&lt;br /&gt;&lt;br /&gt;$pippo= str_replace("\n","", $pippo);&lt;br /&gt;$pippo = str_replace("\r","", $pippo);&lt;br /&gt;$pippo = str_replace("\t","", $pippo);&lt;br /&gt;&lt;br /&gt;Codice che risolverà il dannoso problemi degli spazi invisibili&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-8851114727401059826?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/8851114727401059826/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/convertire-caratteri-speciali-php.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/8851114727401059826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/8851114727401059826'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/convertire-caratteri-speciali-php.html' title='Convertire caratteri speciali, php'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-1200486793293004462</id><published>2009-05-05T03:59:00.000-07:00</published><updated>2009-05-05T04:03:07.849-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='safe mode'/><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='file esterni'/><title type='text'>Visualizzare file esterni con safe_mode abilitato, script php</title><content type='html'>Capita più spesso che i server in cui girano i nostri siti siano protetti dalla modalità safe_mode abilitata. A capita sempre più spesso che ci sia utile l'accesso a file esterni, come file xml. Di seguito un utile script che visualizza sul nostro sito la pagina di www.php.net&lt;br /&gt;&lt;?php&lt;br /&gt;&lt;br /&gt;#usage:&lt;br /&gt;$r = new HTTPRequest('http://www.php.net');&lt;br /&gt;echo $r-&gt;DownloadToString();&lt;br /&gt;class HTTPRequest&lt;br /&gt;{&lt;br /&gt;   var $_fp;        // HTTP socket&lt;br /&gt;   var $_url;        // full URL&lt;br /&gt;   var $_host;        // HTTP host&lt;br /&gt;   var $_protocol;    // protocol (HTTP/HTTPS)&lt;br /&gt;   var $_uri;        // request URI&lt;br /&gt;   var $_port;        // port&lt;br /&gt;   // scan url&lt;br /&gt;   function _scan_url()&lt;br /&gt;   {&lt;br /&gt;       $req = $this-&gt;_url;&lt;br /&gt;       $pos = strpos($req, '://');&lt;br /&gt;       $this-&gt;_protocol = strtolower(substr($req, 0, $pos));&lt;br /&gt;       $req = substr($req, $pos+3);&lt;br /&gt;       $pos = strpos($req, '/');&lt;br /&gt;       if($pos === false)&lt;br /&gt;           $pos = strlen($req);&lt;br /&gt;       $host = substr($req, 0, $pos);&lt;br /&gt;       if(strpos($host, ':') !== false)&lt;br /&gt;       {&lt;br /&gt;           list($this-&gt;_host, $this-&gt;_port) = explode(':', $host);&lt;br /&gt;       }&lt;br /&gt;       else&lt;br /&gt;       {&lt;br /&gt;           $this-&gt;_host = $host;&lt;br /&gt;           $this-&gt;_port = ($this-&gt;_protocol == 'https') ? 443 : 80;&lt;br /&gt;       }&lt;br /&gt;       $this-&gt;_uri = substr($req, $pos);&lt;br /&gt;       if($this-&gt;_uri == '')&lt;br /&gt;           $this-&gt;_uri = '/';&lt;br /&gt;   }&lt;br /&gt;   // constructor&lt;br /&gt;   function HTTPRequest($url)&lt;br /&gt;   {&lt;br /&gt;       $this-&gt;_url = $url;&lt;br /&gt;       $this-&gt;_scan_url();&lt;br /&gt;   }&lt;br /&gt;   // download URL to string&lt;br /&gt;   function DownloadToString()&lt;br /&gt;   {&lt;br /&gt;       $crlf = "\r\n";&lt;br /&gt;       // generate request&lt;br /&gt;       $req = 'GET ' . $this-&gt;_uri . ' HTTP/1.0' . $crlf&lt;br /&gt;           .    'Host: ' . $this-&gt;_host . $crlf&lt;br /&gt;           .    $crlf;&lt;br /&gt;       // fetch&lt;br /&gt;       $this-&gt;_fp = fsockopen(($this-&gt;_protocol == 'https' ? 'ssl://' : '') . $this-&gt;_host, $this-&gt;_port);&lt;br /&gt;       fwrite($this-&gt;_fp, $req);&lt;br /&gt;       while(is_resource($this-&gt;_fp) &amp;amp;&amp;amp; $this-&gt;_fp &amp;amp;&amp;amp; !feof($this-&gt;_fp))&lt;br /&gt;           $response .= fread($this-&gt;_fp, 1024);&lt;br /&gt;       fclose($this-&gt;_fp);&lt;br /&gt;       // split header and body&lt;br /&gt;       $pos = strpos($response, $crlf . $crlf);&lt;br /&gt;       if($pos === false)&lt;br /&gt;           return($response);&lt;br /&gt;       $header = substr($response, 0, $pos);&lt;br /&gt;       $body = substr($response, $pos + 2 * strlen($crlf));&lt;br /&gt;       // parse headers&lt;br /&gt;       $headers = array();&lt;br /&gt;       $lines = explode($crlf, $header);&lt;br /&gt;       foreach($lines as $line)&lt;br /&gt;           if(($pos = strpos($line, ':')) !== false)&lt;br /&gt;               $headers[strtolower(trim(substr($line, 0, $pos)))] = trim(substr($line, $pos+1));&lt;br /&gt;       // redirection?&lt;br /&gt;       if(isset($headers['location']))&lt;br /&gt;       {&lt;br /&gt;           $http = new HTTPRequest($headers['location']);&lt;br /&gt;           return($http-&gt;DownloadToString($http));&lt;br /&gt;       }&lt;br /&gt;       else&lt;br /&gt;       {&lt;br /&gt;           return($body);&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;Da provare, senza abusare&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-1200486793293004462?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/1200486793293004462/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/visualizzare-file-esterni-con-safemode.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/1200486793293004462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/1200486793293004462'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/visualizzare-file-esterni-con-safemode.html' title='Visualizzare file esterni con safe_mode abilitato, script php'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-6643817634688866832</id><published>2009-05-05T03:49:00.000-07:00</published><updated>2009-05-05T04:04:41.930-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='carrello elettronico'/><category scheme='http://www.blogger.com/atom/ns#' term='number_format'/><category scheme='http://www.blogger.com/atom/ns#' term='euro'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Number_format per l'euro €</title><content type='html'>Il comando number_format nasce per il dollaro e/o sterlina, quindi per l'euro, in visualizzazione, possiamo avere dei problemi. Vediamo come risolverli:&lt;br /&gt;&lt;br /&gt;Abbiamo il nostri prezzi:&lt;br /&gt;$prezzo1="550.50";&lt;br /&gt;###il . è fondamentale per la somma,senza . non si somma con il prezzo2###&lt;br /&gt;$prezzo2="550.30";&lt;br /&gt;con una semplice somma avremo:&lt;br /&gt;$totale=$prezzo1+$prezzo2;&lt;br /&gt;e avremo in visualizzazione: 1100.80&lt;br /&gt;&lt;br /&gt;risultato che non è corretto per l'euro, si richiede la , per i decimali e il .&lt;br /&gt;ecco number_format che ci aiuta:&lt;br /&gt;&lt;br /&gt;$totale=number_format($totale, 2, ',', ' '); ##visualizza 2 decimali divisi da , e le migliaia divisi da spazio###&lt;br /&gt;$totale=str_replace(" ",".",$totale); ###trasformo lo spazio in .####&lt;br /&gt;quindi in visualizzazione avrò: 1.100,80&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;N.B:&lt;/span&gt; il valore creato è solo un valore di visualizzazione, per sommarlo dovremo sempre lavorare con il &lt;span style="font-weight: bold;"&gt;totale creato senza number_format&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-6643817634688866832?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/6643817634688866832/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/numberformat-per-leuro.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6643817634688866832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/6643817634688866832'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/05/numberformat-per-leuro.html' title='Number_format per l&apos;euro €'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5149419369318837317.post-606175581656095723</id><published>2009-04-11T03:31:00.000-07:00</published><updated>2009-06-11T03:41:45.790-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Un text editor per siti web in java</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://weblog.leidenuniv.nl/media/blogs/67310/klaassenplf/archives/images/fckeditor.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 350px; height: 302px;" src="http://weblog.leidenuniv.nl/media/blogs/67310/klaassenplf/archives/images/fckeditor.gif" alt="" border="0" /&gt;&lt;/a&gt;Potentissimo editor in java per il proprio sito web, &lt;span style="font-weight: bold;"&gt;compatibile con tutti i browser&lt;/span&gt;. Ricco di applicazioni, può essere integrato più o meno facilmente con php ed asp. Gli esempi disponibili vanno modificati perchè il form comunica solo una variabile generica.&lt;br /&gt;Per visualizzare e memorizzare la nostra variabile nel db basta richiamare: $FCKeditor1&lt;br /&gt;&lt;br /&gt;Per togliere i vari pulsanti, basta andare sul file fckconfing.js e togliere i parametri presenti nell'array: FCKConfig.ToolbarSets. La cosa fondamentale sarà controllare che l'array non si concluda con "virgola".&lt;br /&gt;E' possibile scaricare l'editor &lt;a href="http://www.fckeditor.net/download" target="_blank"&gt;qui &gt;&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5149419369318837317-606175581656095723?l=php-css-seo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://php-css-seo.blogspot.com/feeds/606175581656095723/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://php-css-seo.blogspot.com/2009/04/un-text-editor-per-siti-web-in-java.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/606175581656095723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5149419369318837317/posts/default/606175581656095723'/><link rel='alternate' type='text/html' href='http://php-css-seo.blogspot.com/2009/04/un-text-editor-per-siti-web-in-java.html' title='Un text editor per siti web in java'/><author><name>Staff Itineraridipesca</name><uri>http://www.blogger.com/profile/08467251063387168116</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
