<?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>cssgallery.info &#187; Php</title>
	<atom:link href="http://cssgallery.info/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://cssgallery.info</link>
	<description>Resources for web developers</description>
	<lastBuildDate>Sun, 11 Jul 2010 16:19:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Good for you you&#8217;re coding accessible websites, but do you actually know any blind user?</title>
		<link>http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/</link>
		<comments>http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 11:44:47 +0000</pubDate>
		<dc:creator>Lucica Ibanescu</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[accessible]]></category>
		<category><![CDATA[accessible websites]]></category>
		<category><![CDATA[assistive technologies]]></category>
		<category><![CDATA[detect blind users]]></category>
		<category><![CDATA[detect user agents]]></category>

		<guid isPermaLink="false">http://cssgallery.info/?p=470</guid>
		<description><![CDATA[What can you answer to your client when you try to explain that your code is W3c, semantic, crossbrowser and&#8230;accessible and your client asks you &#8220;Good for you you&#8217;re coding accessible websites, but do you actually know any blind user?&#8221; Meaning, why should someone care about how you code a site as long as table-based [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fgood-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fgood-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>What can you answer to your client when you try to explain that your code is W3c, semantic, crossbrowser and&#8230;accessible  and your client asks you <em>&#8220;Good for you you&#8217;re coding accessible websites, but do you actually know any blind user?&#8221;</em> Meaning, why should someone care about how you code a site as long as table-based code is still ok and cheap?</p>
<p>Well&#8230;you may remain speechless. Cause I really don&#8217;t know any blind person nor a person using assistive technology altough I do know people that need to increase the font-size or lower the screen resolution to be able to read better. But even if I did not &#8220;see&#8221; one that should not mean they don&#8217;t exist &#8211; but how can this be proved?</p>
<p>Since assistive technologies do not leave traces, maybe a solution is to see who&#8217;s clicking the a+ a++ buttons. This surely will leave some trace, right?</p>
<p>So we started an experiment: we wrote a script counting the number of clicks performed on the a+ a++ buttons (I know it&#8217;s not very scientific &#8211; anyone can click &#8211; but we&#8217;re counting on the fact that our users do not know about the experiment and that at least a small percentage of the clicks will be genuine). Every click is counted and written in a file. We compare it to the Google Analytics stats and hope to obtain some information about this aspect of the sites.</p>
<p>After a month of comparing both methods we saw that the a+/ a++ navigation was clicked on a daily basis (even though one site was selling Christmas decorations !!! ) and most of the time a++ was the star ! Between 5% and 8% of the visitors were clicking these links and that is more than the number of clicks on &#8220;about&#8221; or &#8220;contact&#8221; links.</p>
<p>Now, the question that started this article remains &#8211; what is the best answer for the client asking  &#8220;Good for you you&#8217;re coding accessible websites, but do you actually know any blind user?&#8221;</p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/&amp;title=Good+for+you+you%27re+coding+accessible+websites%2C+but+do+you+actually+know+any+blind+user%3F&amp;description=What%20can%20you%20answer%20to%20your%20client%20when%20you%20try%20to%20explain%20that%20your%20code%20is%20W3c%2C%20semantic%2C%20crossbrowser%20and...accessible%20%20and%20your%20client%20asks%20you%20%22Good%20for%20you%20you%27re%20coding%20accessible%20websites%2C%20but%20do%20you%20actually%20know%20any%20blind%20user%3F%22%20Meaning%2C%20why%20should%20someone%20care%20about%20how%20you%20code%20a%20site%20as" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/&amp;title=Good+for+you+you%27re+coding+accessible+websites%2C+but+do+you+actually+know+any+blind+user%3F" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/&amp;title=Good+for+you+you%27re+coding+accessible+websites%2C+but+do+you+actually+know+any+blind+user%3F" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/&amp;title=Good+for+you+you%27re+coding+accessible+websites%2C+but+do+you+actually+know+any+blind+user%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/&amp;title=Good+for+you+you%27re+coding+accessible+websites%2C+but+do+you+actually+know+any+blind+user%3F" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/&amp;t=Good+for+you+you%27re+coding+accessible+websites%2C+but+do+you+actually+know+any+blind+user%3F" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/&amp;title=Good+for+you+you%27re+coding+accessible+websites%2C+but+do+you+actually+know+any+blind+user%3F" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/&amp;title=Good+for+you+you%27re+coding+accessible+websites%2C+but+do+you+actually+know+any+blind+user%3F&amp;srcUrl=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/&amp;srcTitle=Good+for+you+you%27re+coding+accessible+websites%2C+but+do+you+actually+know+any+blind+user%3F&amp;snippet=What%20can%20you%20answer%20to%20your%20client%20when%20you%20try%20to%20explain%20that%20your%20code%20is%20W3c%2C%20semantic%2C%20crossbrowser%20and...accessible%20%20and%20your%20client%20asks%20you%20%22Good%20for%20you%20you%27re%20coding%20accessible%20websites%2C%20but%20do%20you%20actually%20know%20any%20blind%20user%3F%22%20Meaning%2C%20why%20should%20someone%20care%20about%20how%20you%20code%20a%20site%20as" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/good-for-you-youre-coding-accessible-websites-but-do-you-actually-know-any-blind-user/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Basic copy-paste accessible contact form</title>
		<link>http://cssgallery.info/basic-copy-paste-accessible-contact-form/</link>
		<comments>http://cssgallery.info/basic-copy-paste-accessible-contact-form/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 11:36:43 +0000</pubDate>
		<dc:creator>Lucica Ibanescu</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[accessible contact form]]></category>
		<category><![CDATA[accessible form]]></category>
		<category><![CDATA[labels]]></category>
		<category><![CDATA[PHP server side validation]]></category>
		<category><![CDATA[WCAG]]></category>

		<guid isPermaLink="false">http://cssgallery.info/?p=411</guid>
		<description><![CDATA[A good way to learn about accessibility is through examples and discussions. In this post I will try to translate the WCAG sometimes-hard-to-get rules into a copy-paste real contact form example.  You can check the test link, download the code and/or keep reading a bit more. As I mentioned before, contact forms are in great [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fbasic-copy-paste-accessible-contact-form%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fbasic-copy-paste-accessible-contact-form%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>A good way to learn about accessibility is through examples and discussions. In this post I will try to translate the WCAG sometimes-hard-to-get rules into a copy-paste real contact form example.  You can <a href="http://dev.rborn.info/accessible-contact-form/">check the test link</a>, <a href="http://dev.rborn.info/accessible-contact-form/accessible-contact-form.zip">download the code</a> and/or keep reading a bit more.</p>
<p>As I mentioned <a href="http://cssgallery.info/common-sense-accessibility-20/">before,</a> contact forms are in great need of special markup in order to be accessible. And it seems that there&#8217;s always room for improvements &#8211; in case you have suggestions or your approach is different,  I&#8217;d love to hear from you.</p>
<p>My suggestion is a simple 4 fields contact form with PHP server side validation. After the user submits the required information the page is reloaded and new messages are displayed depending on the user actions.  Of course you all know that the form needs</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;label for=&quot;name&quot;&gt;</pre></div></div>

<p> tag and some sort of validation &#8211; everybody is writing about the need to display  in an accesible way which fields are required and also the error messages (usually indicating the missing fields)  &#8211; but few actually offer a simple straightforward code to copy-paste in our sites.</p>
<p>The stylesheet is very light &#8211; we have to style the form &#8211; but the novelty is a class for the fields that are required and not yet filled. This way after we validate we return the error message with links to the missing fields but we also hightlight them for a more usable and intuitive experience. The PHP part is reading the inputs, checks them and sees if the required ones were filled.  A thank you message is displayed in case the user filled all the required fields.</p>
<p>The number of fields can easily be increased but don&#8217;t forget to validate them -when someone understands how the form works and which were the accessibility elements that were included then buiding more complex forms becomes just a matter of typing.</p>
<p><strong class="spanish">Check the Spanish version of this post:<br />
<a href="http://nosoloweb.es/un-basico-copia-y-pega-de-un-formulario-de-contacto-accesible/" rel="me">Un básico copia y pega de un formulario de contacto accesible</a></strong></p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/basic-copy-paste-accessible-contact-form/&amp;title=+Basic+copy-paste+accessible+contact+form&amp;description=A%20good%20way%20to%20learn%20about%20accessibility%20is%20through%20examples%20and%20discussions.%20In%20this%20post%20I%20will%20try%20to%20translate%20the%20WCAG%20sometimes-hard-to-get%20rules%20into%20a%20copy-paste%20real%20contact%20form%20example.%C2%A0%20You%20can%20check%20the%20test%20link%2C%20download%20the%20code%20and%2For%20keep%20reading%20a%20bit%20more.%0D%0A%0D%0AAs%20I%20mentioned%20befor" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/basic-copy-paste-accessible-contact-form/&amp;title=+Basic+copy-paste+accessible+contact+form" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/basic-copy-paste-accessible-contact-form/&amp;title=+Basic+copy-paste+accessible+contact+form" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/basic-copy-paste-accessible-contact-form/&amp;title=+Basic+copy-paste+accessible+contact+form" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/basic-copy-paste-accessible-contact-form/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/basic-copy-paste-accessible-contact-form/&amp;title=+Basic+copy-paste+accessible+contact+form" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/basic-copy-paste-accessible-contact-form/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/basic-copy-paste-accessible-contact-form/&amp;t=+Basic+copy-paste+accessible+contact+form" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/basic-copy-paste-accessible-contact-form/&amp;title=+Basic+copy-paste+accessible+contact+form" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/basic-copy-paste-accessible-contact-form/&amp;title=+Basic+copy-paste+accessible+contact+form&amp;srcUrl=http://cssgallery.info/basic-copy-paste-accessible-contact-form/&amp;srcTitle=+Basic+copy-paste+accessible+contact+form&amp;snippet=A%20good%20way%20to%20learn%20about%20accessibility%20is%20through%20examples%20and%20discussions.%20In%20this%20post%20I%20will%20try%20to%20translate%20the%20WCAG%20sometimes-hard-to-get%20rules%20into%20a%20copy-paste%20real%20contact%20form%20example.%C2%A0%20You%20can%20check%20the%20test%20link%2C%20download%20the%20code%20and%2For%20keep%20reading%20a%20bit%20more.%0D%0A%0D%0AAs%20I%20mentioned%20befor" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/basic-copy-paste-accessible-contact-form/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/basic-copy-paste-accessible-contact-form/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unobtrusive PHP ?</title>
		<link>http://cssgallery.info/unobtrusive-php/</link>
		<comments>http://cssgallery.info/unobtrusive-php/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 03:53:04 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[unobtrusive]]></category>
		<category><![CDATA[validator]]></category>

		<guid isPermaLink="false">http://cssgallery.info/?p=326</guid>
		<description><![CDATA[Strange? What do you say if we use this term for a form validation, server side? I say &#8220;Unobrusive PHP&#8221; because it&#8217;s what I work with, but it can be any other language. Let me explain We already do this in Javascript. We attach a class to a field we want to validate, then, when [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Funobtrusive-php%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Funobtrusive-php%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Strange?</p>
<p>What do you say  if we use this term for a form validation, server side? I say &#8220;Unobrusive PHP&#8221; because it&#8217;s what I work with, but it can be any other language.</p>
<h2>Let me explain</h2>
<p>We already do this in Javascript. We attach a class to a field we want to validate, then, when the user try to submit, we try to validate the input by a rule associated to the class. All is fine, only that we need to make this server-side too, we cannot trust the users, do we?</p>
<p>So what if to the input name  we attach a specific segment, that will be validated once it reach the server, removes the attachment, and pass further the data like never happened?</p>
<h2>Some code</h2>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;input type=&quot;text&quot; name=&quot;email&quot; /&gt;</pre></div></div>

<p><strong>for js validation would be</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;input type=&quot;text&quot; name=&quot;email&quot; class=&quot;email&quot;/&gt;</pre></div></div>

<p><strong><br />
for php would be</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;input type=&quot;text&quot; name=&quot;email___email&quot; /&gt;</pre></div></div>

<p>and the validation class would take the<strong> $_POST</strong> array, search for a value  that contains <strong>___email</strong>, validates it, then simple remove the segment for further processing.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">$_POST[&quot;emai&quot;] = $_POST[&quot;email___email&quot;];</pre></div></div>

<p>This idea is the preamble of a future post regarding a more  universal validator for forms. It&#8217;s only a concept. Let me now your thoughts.</p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/unobtrusive-php/&amp;title=Unobtrusive+PHP+%3F&amp;description=Strange%3F%0D%0A%0D%0AWhat%20do%20you%20say%20%20if%20we%20use%20this%20term%20for%20a%20form%20validation%2C%20server%20side%3F%20I%20say%20%22Unobrusive%20PHP%22%20because%20it%27s%20what%20I%20work%20with%2C%20but%20it%20can%20be%20any%20other%20language.%0D%0A%0D%0ALet%20me%20explain%0D%0A%0D%0AWe%20already%20do%20this%20in%20Javascript.%20We%20attach%20a%20class%20to%20a%20field%20we%20want%20to%20validate%2C%20then%2C%20when%20the%20user%20tr" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/unobtrusive-php/&amp;title=Unobtrusive+PHP+%3F" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/unobtrusive-php/&amp;title=Unobtrusive+PHP+%3F" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/unobtrusive-php/&amp;title=Unobtrusive+PHP+%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/unobtrusive-php/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/unobtrusive-php/&amp;title=Unobtrusive+PHP+%3F" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/unobtrusive-php/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/unobtrusive-php/&amp;t=Unobtrusive+PHP+%3F" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/unobtrusive-php/&amp;title=Unobtrusive+PHP+%3F" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/unobtrusive-php/&amp;title=Unobtrusive+PHP+%3F&amp;srcUrl=http://cssgallery.info/unobtrusive-php/&amp;srcTitle=Unobtrusive+PHP+%3F&amp;snippet=Strange%3F%0D%0A%0D%0AWhat%20do%20you%20say%20%20if%20we%20use%20this%20term%20for%20a%20form%20validation%2C%20server%20side%3F%20I%20say%20%22Unobrusive%20PHP%22%20because%20it%27s%20what%20I%20work%20with%2C%20but%20it%20can%20be%20any%20other%20language.%0D%0A%0D%0ALet%20me%20explain%0D%0A%0D%0AWe%20already%20do%20this%20in%20Javascript.%20We%20attach%20a%20class%20to%20a%20field%20we%20want%20to%20validate%2C%20then%2C%20when%20the%20user%20tr" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/unobtrusive-php/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/unobtrusive-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Textmate &#8211;  php syntax check</title>
		<link>http://cssgallery.info/textmate-php-syntax-check/</link>
		<comments>http://cssgallery.info/textmate-php-syntax-check/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 01:12:01 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Development tools]]></category>
		<category><![CDATA[Mac OsX]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Bundle Editor]]></category>
		<category><![CDATA[php syntax check]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://cssgallery.info/?p=276</guid>
		<description><![CDATA[A nice &#8220;hidden&#8221; feature that Textmate has is to check the syntax of the php files you are writing and display a popup with the result. How to do this? Open Bundle Editor, search for the PHP bundle, scroll down until you find the Validate syntax command. Edit the Save setting to Current File. Now, [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Ftextmate-php-syntax-check%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Ftextmate-php-syntax-check%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>A nice &#8220;hidden&#8221; feature that Textmate has  is to check the syntax of the php files you are writing and display a popup with the result.</p>
<p>How to do this?</p>
<p>Open <strong>Bundle Editor</strong>, search for the <strong>PHP</strong> bundle, scroll down until you find the <strong>Validate syntax </strong>command.</p>
<p>Edit the <strong>Save</strong> setting to <strong>Current File</strong>.</p>
<p>Now, depending on how you want it, you can alter the <strong>Activation</strong> setting or not. I set it  the same as saving the file, so each time I save the file, it makes me the syntax check.</p>
<p><img class="alignnone size-medium wp-image-277" title="capture-11" src="http://cssgallery.info/wp-content/uploads/2009/01/capture-11-300x158.png" alt="capture-11" width="450" height="210" /></p>
<p>Close the Bundle Editor.</p>
<p>From now on  each time you save a syntax check will be done  and a popup will show you the result</p>
<h2>The result</h2>
<p><img class="alignnone size-full wp-image-278" title="capture-21" src="http://cssgallery.info/wp-content/uploads/2009/01/capture-21.png" alt="capture-21" width="450" height="190" /></p>
<p>That&#8217;s all.</p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/textmate-php-syntax-check/&amp;title=Textmate+-++php+syntax+check&amp;description=A%20nice%20%22hidden%22%20feature%20that%20Textmate%20has%20%20is%20to%20check%20the%20syntax%20of%20the%20php%20files%20you%20are%20writing%20and%20display%20a%20popup%20with%20the%20result.%0D%0A%0D%0AHow%20to%20do%20this%3F%0D%0A%0D%0AOpen%20Bundle%20Editor%2C%20search%20for%20the%20PHP%20bundle%2C%20scroll%20down%20until%20you%20find%20the%20Validate%20syntax%20command.%0D%0A%0D%0AEdit%20the%20Save%20setting%20to%20Current%20Fil" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/textmate-php-syntax-check/&amp;title=Textmate+-++php+syntax+check" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/textmate-php-syntax-check/&amp;title=Textmate+-++php+syntax+check" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/textmate-php-syntax-check/&amp;title=Textmate+-++php+syntax+check" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/textmate-php-syntax-check/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/textmate-php-syntax-check/&amp;title=Textmate+-++php+syntax+check" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/textmate-php-syntax-check/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/textmate-php-syntax-check/&amp;t=Textmate+-++php+syntax+check" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/textmate-php-syntax-check/&amp;title=Textmate+-++php+syntax+check" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/textmate-php-syntax-check/&amp;title=Textmate+-++php+syntax+check&amp;srcUrl=http://cssgallery.info/textmate-php-syntax-check/&amp;srcTitle=Textmate+-++php+syntax+check&amp;snippet=A%20nice%20%22hidden%22%20feature%20that%20Textmate%20has%20%20is%20to%20check%20the%20syntax%20of%20the%20php%20files%20you%20are%20writing%20and%20display%20a%20popup%20with%20the%20result.%0D%0A%0D%0AHow%20to%20do%20this%3F%0D%0A%0D%0AOpen%20Bundle%20Editor%2C%20search%20for%20the%20PHP%20bundle%2C%20scroll%20down%20until%20you%20find%20the%20Validate%20syntax%20command.%0D%0A%0D%0AEdit%20the%20Save%20setting%20to%20Current%20Fil" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/textmate-php-syntax-check/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/textmate-php-syntax-check/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to get the last news from a blog (any blog)</title>
		<link>http://cssgallery.info/how-to-get-last-news-from-a-blog/</link>
		<comments>http://cssgallery.info/how-to-get-last-news-from-a-blog/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 23:19:20 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[fopen]]></category>
		<category><![CDATA[get blog news]]></category>
		<category><![CDATA[LastRSS]]></category>
		<category><![CDATA[news parser]]></category>
		<category><![CDATA[rss parser]]></category>
		<category><![CDATA[RSS reader]]></category>

		<guid isPermaLink="false">http://cssgallery.info/?p=198</guid>
		<description><![CDATA[This tutorial will show us how to get the last news of a blog and put it on our site. We may have the case when our site is not fully driven by a blog engine, but we have one, so we want to put on the &#8216;News&#8217; section the last posts, or we want [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fhow-to-get-last-news-from-a-blog%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fhow-to-get-last-news-from-a-blog%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This tutorial will show us how to get the last news of a blog and put it on our site. We may have the case when our site is not fully driven by a blog engine, but we have one, so we want to put on the &#8216;News&#8217; section the last posts, or we want to grab other&#8217;s news feeds and display it on our site.</p>
<p>First step is to download the script built by Rborn Development, from <a href="http://www.rborn.info/products/news_reader.zip">here</a>. It is a script that is very easy to use, based on <a href="http://lastrss.oslab.net/">LastRSS</a> but changed a little to overcome the restrictive security settings found on many servers related to <strong>fopen</strong>.<br />
Just include the <strong>news_reader.php</strong> in the place where you want the news to be. Then edit the file, set the number of posts and urls to grab.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//-------- settings --------</span>
&nbsp;
<span style="color: #000088;">$rssurl</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://feeds.feedburner.com/Cssgalleryinfo'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$nr</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//-------------------------</span></pre></div></div>

<p>After this you may want to skin this section  because the script is just raw text &#8211; this way everybody to be able to skin according to its design.</p>
<h2>The code</h2>
<p><a title="Get last news from a blog" href="http://cssgallery.info/wp-content/get_last_news_from_blog.php" target="_blank">Here</a> is an example, with raw result and a skinned one.</p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/how-to-get-last-news-from-a-blog/&amp;title=How+to+get+the+last+news+from+a+blog+%28any+blog%29&amp;description=This%20tutorial%20will%20show%20us%20how%20to%20get%20the%20last%20news%20of%20a%20blog%20and%20put%20it%20on%20our%20site.%20We%20may%20have%20the%20case%20when%20our%20site%20is%20not%20fully%20driven%20by%20a%20blog%20engine%2C%20but%20we%20have%20one%2C%20so%20we%20want%20to%20put%20on%20the%20%27News%27%20section%20the%20last%20posts%2C%20or%20we%20want%20to%20grab%20other%27s%20news%20feeds%20and%20display%20it%20on%20our%20site.%0D%0A%0D" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/how-to-get-last-news-from-a-blog/&amp;title=How+to+get+the+last+news+from+a+blog+%28any+blog%29" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/how-to-get-last-news-from-a-blog/&amp;title=How+to+get+the+last+news+from+a+blog+%28any+blog%29" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/how-to-get-last-news-from-a-blog/&amp;title=How+to+get+the+last+news+from+a+blog+%28any+blog%29" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/how-to-get-last-news-from-a-blog/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/how-to-get-last-news-from-a-blog/&amp;title=How+to+get+the+last+news+from+a+blog+%28any+blog%29" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/how-to-get-last-news-from-a-blog/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/how-to-get-last-news-from-a-blog/&amp;t=How+to+get+the+last+news+from+a+blog+%28any+blog%29" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/how-to-get-last-news-from-a-blog/&amp;title=How+to+get+the+last+news+from+a+blog+%28any+blog%29" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/how-to-get-last-news-from-a-blog/&amp;title=How+to+get+the+last+news+from+a+blog+%28any+blog%29&amp;srcUrl=http://cssgallery.info/how-to-get-last-news-from-a-blog/&amp;srcTitle=How+to+get+the+last+news+from+a+blog+%28any+blog%29&amp;snippet=This%20tutorial%20will%20show%20us%20how%20to%20get%20the%20last%20news%20of%20a%20blog%20and%20put%20it%20on%20our%20site.%20We%20may%20have%20the%20case%20when%20our%20site%20is%20not%20fully%20driven%20by%20a%20blog%20engine%2C%20but%20we%20have%20one%2C%20so%20we%20want%20to%20put%20on%20the%20%27News%27%20section%20the%20last%20posts%2C%20or%20we%20want%20to%20grab%20other%27s%20news%20feeds%20and%20display%20it%20on%20our%20site.%0D%0A%0D" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/how-to-get-last-news-from-a-blog/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/how-to-get-last-news-from-a-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kroppr &#8211; image cropping widget for your site</title>
		<link>http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/</link>
		<comments>http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 16:15:50 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development tools]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[image cropper]]></category>
		<category><![CDATA[image cropping script]]></category>
		<category><![CDATA[image resizer]]></category>
		<category><![CDATA[javascript image crop]]></category>
		<category><![CDATA[kroppr]]></category>
		<category><![CDATA[php image crop]]></category>
		<category><![CDATA[picture cropper]]></category>

		<guid isPermaLink="false">http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/</guid>
		<description><![CDATA[Kroppr is an unobtrusive script that willenhance any site that wants to offer an image cropping tool for its visitors. Unlike other scripts, Kroppr is able to ROTATE, zoom and move the image in the real time without using plugins &#8211; flash or java. The actual picture crop is done after the user is satisfied [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fkroppr-image-cropping-widget-for-your-site%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fkroppr-image-cropping-widget-for-your-site%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><a title="Kroppr image crop script" href="http://kroppr.rborn.info/" target="_blank">Kroppr</a> is an unobtrusive script that willenhance any site that wants to offer an image cropping tool for its visitors.</p>
<p>Unlike other scripts, <strong>Kroppr</strong> is able to <strong>ROTATE</strong>, <strong>zoom</strong> and <strong>move</strong> the image in the real time without using plugins &#8211; flash or java. The actual picture crop is done after the user is satisfied with his settings. In this way, the load put on the server is minimised and also the visitor&#8217;s experience.</p>
<p>The installation  is also very simple being enough to add a script tag in the header&#8217;s page and a class to the image that makes the cropping subject. More info on the <a title="Kroppr image crop script installation" href="http://kroppr.rborn.info/" target="_blank"><strong>Kroppr page</strong></a>.</p>
<p style="float: left;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="349" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/PwhKOs1Ko6g&amp;hl=en&amp;fs=1&amp;rel=0&amp;border=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="349" src="http://www.youtube.com/v/PwhKOs1Ko6g&amp;hl=en&amp;fs=1&amp;rel=0&amp;border=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/&amp;title=Kroppr+-+image+cropping+widget+for+your+site&amp;description=Kroppr%20is%20an%20unobtrusive%20script%20that%20willenhance%20any%20site%20that%20wants%20to%20offer%20an%20image%20cropping%20tool%20for%20its%20visitors.%0D%0A%0D%0AUnlike%20other%20scripts%2C%20Kroppr%20is%20able%20to%20ROTATE%2C%20zoom%20and%20move%20the%20image%20in%20the%20real%20time%20without%20using%20plugins%20-%20flash%20or%20java.%20The%20actual%20picture%20crop%20is%20done%20after%20the%20user%20is%20" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/&amp;title=Kroppr+-+image+cropping+widget+for+your+site" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/&amp;title=Kroppr+-+image+cropping+widget+for+your+site" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/&amp;title=Kroppr+-+image+cropping+widget+for+your+site" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/&amp;title=Kroppr+-+image+cropping+widget+for+your+site" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/&amp;t=Kroppr+-+image+cropping+widget+for+your+site" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/&amp;title=Kroppr+-+image+cropping+widget+for+your+site" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/&amp;title=Kroppr+-+image+cropping+widget+for+your+site&amp;srcUrl=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/&amp;srcTitle=Kroppr+-+image+cropping+widget+for+your+site&amp;snippet=Kroppr%20is%20an%20unobtrusive%20script%20that%20willenhance%20any%20site%20that%20wants%20to%20offer%20an%20image%20cropping%20tool%20for%20its%20visitors.%0D%0A%0D%0AUnlike%20other%20scripts%2C%20Kroppr%20is%20able%20to%20ROTATE%2C%20zoom%20and%20move%20the%20image%20in%20the%20real%20time%20without%20using%20plugins%20-%20flash%20or%20java.%20The%20actual%20picture%20crop%20is%20done%20after%20the%20user%20is%20" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/kroppr-image-cropping-widget-for-your-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to load ioncube loader without root access</title>
		<link>http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/</link>
		<comments>http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 01:06:53 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Development tools]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[encode PHP scripts]]></category>
		<category><![CDATA[How to load ioncube loader without root access]]></category>
		<category><![CDATA[Ioncube encoder]]></category>
		<category><![CDATA[protect PHP code]]></category>
		<category><![CDATA[Zend Guard]]></category>

		<guid isPermaLink="false">http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/</guid>
		<description><![CDATA[Some coders are doing a living from selling php scripts. Nothing new here. But to protect themselves from piracy they need to encode the php code to prevent stealing, unauthorized usage and so on. This can be accomplished using various encoders, some strong , some weak that will give them a specific amount of security, [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fhow-to-load-ioncube-loader-without-root-access%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fhow-to-load-ioncube-loader-without-root-access%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Some coders are doing a living from selling php scripts. Nothing new here. But to protect themselves from piracy they need to encode the php code to prevent stealing, unauthorized usage and so on.</p>
<p>This can be accomplished using various encoders, some strong , some weak that will give them a specific amount of security, depending on what each of them is doing, form simple obfuscation to byte encoding techniques.</p>
<p>Two major players are<strong> Zend Guard</strong> and <strong>Ioncube encoder</strong>.</p>
<p>If Zend has a wider spread across  the <a href="http://www.webhostingsearch.com">hosting companies</a>, ioncube  is  not that lucky, and usually  you have to  make a  ticket to support to  load the ioncube loader for you ( with or without a fee). There are cases when this cannot be done, so  you  might be forced to try to load this by yourself.</p>
<p>This can be accomplished if  the ini flag <strong>enable_dl</strong> is <strong>ON</strong> &#8211;  a quick phpinfo() should reveal this to you.</p>
<p>If you are lucky, next step is to download the loaders from  ioncube site, upload it to your server and point the browser to</p>
<p><strong>http://yoursite.com/path/ioncube-loader-helper.php?page=install-assistant</strong></p>
<p>you will find something like this:</p>
<p><img src="http://cssgallery.info/wp-content/uploads/2008/09/capture-3.png" alt="ioncube loader" /> </p>
<p>create a <strong>php.ini</strong> in the folder you need to put encoded files</p>
<p>and add this line to it</p>
<p>if you have the loader in the same folder, path woud  be &#8220;<strong>./</strong>&#8221; else use the folder where you put the loader.</p>
<p>now point your browser to</p>
<p><strong>http://yoursite.com/path/ioncube-loader-helper.php</strong></p>
<p>and if all is ok you should have something like this:</p>
<p><img src="http://cssgallery.info/wp-content/uploads/2008/09/capture-4.png" alt="ioncube loader" /> </p>
<p>Pretty simple, no ticket to support and  no waiting for it to be solved.</p>
<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/&amp;title=How+to+load+ioncube+loader+without+root+access&amp;description=Some%20coders%20are%20doing%20a%20living%20from%20selling%20php%20scripts.%20Nothing%20new%20here.%20But%20to%20protect%20themselves%20from%20piracy%20they%20need%20to%20encode%20the%20php%20code%20to%20prevent%20stealing%2C%20unauthorized%20usage%20and%20so%20on.%0D%0A%0D%0AThis%20can%20be%20accomplished%20using%20various%20encoders%2C%20some%20strong%20%2C%20some%20weak%20that%20will%20give%20them%20a%20speci" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/&amp;title=How+to+load+ioncube+loader+without+root+access" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/&amp;title=How+to+load+ioncube+loader+without+root+access" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/&amp;title=How+to+load+ioncube+loader+without+root+access" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/&amp;title=How+to+load+ioncube+loader+without+root+access" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/&amp;t=How+to+load+ioncube+loader+without+root+access" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/&amp;title=How+to+load+ioncube+loader+without+root+access" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/&amp;title=How+to+load+ioncube+loader+without+root+access&amp;srcUrl=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/&amp;srcTitle=How+to+load+ioncube+loader+without+root+access&amp;snippet=Some%20coders%20are%20doing%20a%20living%20from%20selling%20php%20scripts.%20Nothing%20new%20here.%20But%20to%20protect%20themselves%20from%20piracy%20they%20need%20to%20encode%20the%20php%20code%20to%20prevent%20stealing%2C%20unauthorized%20usage%20and%20so%20on.%0D%0A%0D%0AThis%20can%20be%20accomplished%20using%20various%20encoders%2C%20some%20strong%20%2C%20some%20weak%20that%20will%20give%20them%20a%20speci" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/how-to-load-ioncube-loader-without-root-access/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>php &#8216;included&#8217; menu styling</title>
		<link>http://cssgallery.info/php-included-menu-styling/</link>
		<comments>http://cssgallery.info/php-included-menu-styling/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 19:06:57 +0000</pubDate>
		<dc:creator>Dan Tamas</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[break the code into included files]]></category>
		<category><![CDATA[php include]]></category>
		<category><![CDATA[php menu]]></category>
		<category><![CDATA[php menu styling]]></category>

		<guid isPermaLink="false">http://cssgallery.info/php-included-menu-styling/</guid>
		<description><![CDATA[Some times, when we have a pretty big amount of pages on a site but don&#8217;t need or want to use a CMS so we take advantage of PHP and split the page layout in more includes like:header.php, content.php, footer.php &#8211; this way we do not need to write the same content (or copy paste [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.5 Start--><!--S-ButtonZ 1.1.5 End--><div class="tweetmeme_button" style="float: right; margin: 10px !important;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcssgallery.info%2Fphp-included-menu-styling%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcssgallery.info%2Fphp-included-menu-styling%2F&amp;source=dan_tamas&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Some times, when we have a pretty big amount of pages on a site but don&#8217;t need or want to use a CMS so we take advantage of  PHP and split the page layout in more includes like:header.php, content.php, footer.php &#8211; this way we do not need to write the same content (or copy paste it <img src='http://cssgallery.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ) in every page.</p>
<p>If our design is user centered ( i mean it tries to have some usability ) we&#8217;ll need to find a way to make the menu clear &#8211; pages that are active needs to be &#8220;highlighted&#8221; somehow. A good example is WordPress  :</p>
<p><img src="http://cssgallery.info/wp-content/uploads/2008/01/menu_hilite.png" alt="menu highlighted" /> </p>
<p> &#8220;Posts&#8221; page is the current page. We can do this the hard way &#8211; copy menu content in every page and change the styling for current link, or  use some php code that do this for us and move the menu in &#8220;header.php&#8221; include file.This is a small code we can use for our needs:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;a class=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$url</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'href=&quot;index.php'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Home&lt;/a&gt;
&lt;a class=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$url</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'href=&quot;product.php'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Product&lt;/a&gt;
&lt;a class=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$url</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'href=&quot;directory.php'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Directory&lt;/a&gt;</pre></div></div>

<p>The above code will work for relative links, for absolute links you will have to detect the full url of current page:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
    <span style="color: #000088;">$domain</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$domain</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;div class=&quot;actual_menu&quot;&gt;
&lt;a href=&quot;http://www.cssgallery.info/index.php&quot;	
class=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$url</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'http://www.cssgallery.info/index.php'</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">&quot;menu_on&quot;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;menu&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>;&quot;
&gt;Home&lt;/a&gt;&lt;/div&gt;</pre></div></div>

<div style="clear:both;">&nbsp;</div>

<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://cssgallery.info/php-included-menu-styling/&amp;title=php+%27included%27+menu+styling&amp;description=Some%20times%2C%20when%20we%20have%20a%20pretty%20big%20amount%20of%20pages%20on%20a%20site%20but%20don%27t%20need%20or%20want%20to%20use%20a%20CMS%20so%20we%20take%20advantage%20of%20%20PHP%20and%20split%20the%20page%20layout%20in%20more%20includes%20like%3Aheader.php%2C%20content.php%2C%20footer.php%20-%20this%20way%20we%20do%20not%20need%20to%20write%20the%20same%20content%20%28or%20copy%20paste%20it%20%3AD%29%20in%20every%20page" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://cssgallery.info/php-included-menu-styling/&amp;title=php+%27included%27+menu+styling" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://cssgallery.info/php-included-menu-styling/&amp;title=php+%27included%27+menu+styling" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://cssgallery.info/php-included-menu-styling/&amp;title=php+%27included%27+menu+styling" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://cssgallery.info/php-included-menu-styling/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://cssgallery.info/php-included-menu-styling/&amp;title=php+%27included%27+menu+styling" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://cssgallery.info/php-included-menu-styling/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://cssgallery.info/php-included-menu-styling/&amp;t=php+%27included%27+menu+styling" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-evernote">
			<a href="http://www.evernote.com/clip.action?url=http://cssgallery.info/php-included-menu-styling/&amp;title=php+%27included%27+menu+styling" rel="nofollow" class="external" title="Clip this to Evernote">Clip this to Evernote</a>
		</li>
		<li class="shr-googlereader">
			<a href="http://www.google.com/reader/link?url=http://cssgallery.info/php-included-menu-styling/&amp;title=php+%27included%27+menu+styling&amp;srcUrl=http://cssgallery.info/php-included-menu-styling/&amp;srcTitle=php+%27included%27+menu+styling&amp;snippet=Some%20times%2C%20when%20we%20have%20a%20pretty%20big%20amount%20of%20pages%20on%20a%20site%20but%20don%27t%20need%20or%20want%20to%20use%20a%20CMS%20so%20we%20take%20advantage%20of%20%20PHP%20and%20split%20the%20page%20layout%20in%20more%20includes%20like%3Aheader.php%2C%20content.php%2C%20footer.php%20-%20this%20way%20we%20do%20not%20need%20to%20write%20the%20same%20content%20%28or%20copy%20paste%20it%20%3AD%29%20in%20every%20page" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="shr-meneame">
			<a href="http://meneame.net/submit.php?url=http://cssgallery.info/php-included-menu-styling/" rel="nofollow" class="external" title="Submit this to Meneame">Submit this to Meneame</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://cssgallery.info/php-included-menu-styling/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
