<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>silzenna.net &#187; Snippets</title>
	<atom:link href="http://www.silzenna.net/category/snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silzenna.net</link>
	<description>Senior Web Developer &#38; Web Consultant</description>
	<lastBuildDate>Thu, 22 Dec 2011 08:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CSS 2.1 e CSS 3 Cheat Sheets</title>
		<link>http://www.silzenna.net/2010/05/14/css-2-1-e-css-3-cheat-sheets/</link>
		<comments>http://www.silzenna.net/2010/05/14/css-2-1-e-css-3-cheat-sheets/#comments</comments>
		<pubDate>Fri, 14 May 2010 15:48:41 +0000</pubDate>
		<dc:creator>silzenna</dc:creator>
				<category><![CDATA[Download]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[cheat sheets]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css 2]]></category>
		<category><![CDATA[css 3]]></category>
		<category><![CDATA[specifiche css 3]]></category>

		<guid isPermaLink="false">http://www.silzenna.net/?p=464</guid>
		<description><![CDATA[Pubblicati nella sezione Download due nuovi Cheat Sheet relativi al linguaggio e alle specifiche Cascade Style Sheet - CSS 2.1 e 3.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p style="text-align: left;"><a href="http://www.silzenna.net/wp-content/uploads/2010/05/css.jpg"><img class="size-full wp-image-465  aligncenter" title="css" src="http://www.silzenna.net/wp-content/uploads/2010/05/css.jpg" alt="" width="420" height="261" /></a>Pubblicati nella sezione <a title="Sezione Download" href="/downloads?phpMyAdmin=RZ8nrM4%2CSmA06b-70UviYU2l8Q6" target="_self">Download</a> due nuovi Cheat Sheet relativi al linguaggio e alle specifiche Cascade Style Sheet &#8211; CSS 2.1 e 3.<br />
Fondamentale soprattutto quest&#8217;ultimo (il primo può servire senza dubbio più ai neofiti dello sviluppo web) per acquisire immediata dimestichezza con le nuove specifiche della versione 3.<span id="more-464"></span>Qui di seguito i link ai due file pdf da scaricare e stampare:</p>
Note: There is a file embedded within this post, please visit this post to download the file.
Note: There is a file embedded within this post, please visit this post to download the file.
<div class="shr-publisher-464"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.silzenna.net%2F2010%2F05%2F14%2Fcss-2-1-e-css-3-cheat-sheets%2F' data-shr_title='CSS+2.1+e+CSS+3+Cheat+Sheets'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.silzenna.net%2F2010%2F05%2F14%2Fcss-2-1-e-css-3-cheat-sheets%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.silzenna.net%2F2010%2F05%2F14%2Fcss-2-1-e-css-3-cheat-sheets%2F' data-shr_title='CSS+2.1+e+CSS+3+Cheat+Sheets'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.silzenna.net/2010/05/14/css-2-1-e-css-3-cheat-sheets/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SNIPPET PHP: separare basename e estensione dai filename</title>
		<link>http://www.silzenna.net/2010/02/10/snippet-php-separare-basename-e-estensione-dai-filename/</link>
		<comments>http://www.silzenna.net/2010/02/10/snippet-php-separare-basename-e-estensione-dai-filename/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 09:07:02 +0000</pubDate>
		<dc:creator>silzenna</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[esempi php]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script php]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.silzenna.net/?p=358</guid>
		<description><![CDATA[Esempio di codice php per separare basename ed estensione da un filename.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Per l&#8217;elaborazione dei file da script molto spesso, se non addirittura quasi sempre, risulta utile separare l&#8217;estensione del file dal nome. Questo può servire ad esempio per criptare il nome del file, aggiungere prefissi/suffissi al nome del file o ancora per verificare l&#8217;estensione inserita di un file caricato dall&#8217;utente.</p>
<p>Il codice php per separare basename ed estensione da un filename è il seguente:</p>
<pre name="code" class="php">
// gestione dei filename
$filename = 'image.jpg';
$basefilename = preg_replace("/(.*)\.([^.]+)$/","\\1", $filename);
$ext = preg_replace("/.*\.([^.]+)$/","\\1", $filename);
echo $basefilename . '-' . $ext;
</pre>
<p>L&#8217;esempio sopra produrrà in output</p>
<pre>image - jpg
</pre>
<div class="shr-publisher-358"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.silzenna.net%2F2010%2F02%2F10%2Fsnippet-php-separare-basename-e-estensione-dai-filename%2F' data-shr_title='SNIPPET+PHP%3A+separare+basename+e+estensione+dai+filename'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.silzenna.net%2F2010%2F02%2F10%2Fsnippet-php-separare-basename-e-estensione-dai-filename%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.silzenna.net%2F2010%2F02%2F10%2Fsnippet-php-separare-basename-e-estensione-dai-filename%2F' data-shr_title='SNIPPET+PHP%3A+separare+basename+e+estensione+dai+filename'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.silzenna.net/2010/02/10/snippet-php-separare-basename-e-estensione-dai-filename/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

