Popular PHP Snippets




« Prev [Page 1 of 97] Next »
  1. FAVCheck for valid email address

    PHP regex email valid saved by 325 people
    posted on November 30, -0001 by tylerhall
  2. FAVNice URLS PHP .htaccess

    PHP url php htaccess nice saved by 308 people
    posted on January 14, 2008 by Abe
  3. FAVLogin Class

    PHP login auth class php saved by 234 people
    posted on November 30, -0001 by tylerhall
  4. FAVDownload file

    PHP file download saved by 177 people
    posted on July 3, 2006 by luman
  5. FAVAnti-SQL Injection Function

    PHP mysql php textmate security sql-injection saved by 169 people
    posted on May 27, 2007 by llbbl
  6. FAVMySQL Dump

    PHP mysql backup saved by 155 people
    posted on July 1, 2006 by neogeek
  7. FAVRSS Writer Class

    PHP class rss writer feed saved by 155 people
    posted on November 30, -0001 by tylerhall
  8. FAVSimple MySQL Search Function

    PHP mysql search saved by 136 people
    posted on July 1, 2006 by neogeek
  9. FAVPhp xml Parser

    PHP saved by 124 people
    posted on July 17, 2006 by nicolaspar
  10. FAVResize Image

    PHP resize image gd jpg png gif saved by 95 people
    posted on November 30, -0001 by tylerhall
  11. FAVUS States and World Countries Collection

    PHP states dropdown list countries saved by 82 people
    posted on July 1, 2006 by neogeek
  12. FAVGetting real IP address in PHP

    PHP ipAddress saved by 78 people
    posted on January 1, 2008 by mifly
  13. FAVPHP Tag Cloud Based on Word Frequency

    PHP php cloud tag frequency saved by 77 people
    posted on February 27, 2007 by koncept
  14. FAVPrevent SQL Injection

    PHP sql function injection prevent saved by 70 people
    posted on November 28, 2007 by engel
  15. FAVFTP file upload example

    PHP login php file upload FTP chmod saved by 64 people
    posted on August 14, 2006 by hxseven
  16. FAVCalculate the Distance Between Two Coordinates (latitude, longitude)

    PHP math longitude distance latitude saved by 62 people
    posted on April 24, 2007 by tylerhall
  17. FAVThumbs on fly

    PHP image thumbs saved by 62 people
    posted on June 29, 2006 by luman
  18. FAVclean user input data ( GET, POST, COOKIE )

    PHP get mysql sql php post input cookie injection clean saved by 59 people
    posted on November 21, 2007 by peteypablonz
  19. FAVckeckMail

    PHP email mail check validation saved by 59 people
    posted on June 28, 2006 by luman
  20. FAVCreate a thumbnail maintaining aspect ratio using GD

    PHP php gd thumbnail aspect saved by 56 people
    posted on August 9, 2006 by mthorn
  21. FAVFormat Phone Number

    PHP regex phone number format saved by 53 people
    posted on November 30, -0001 by tylerhall
  22. FAVMYSQL Database Class

    PHP mysql database class php saved by 52 people
    posted on May 27, 2007 by emuen
  23. FAVTest for a valid email address and MX records

    PHP regex email valid textmate test mx saved by 51 people
    posted on July 26, 2006 by tylerhall
  24. FAVCerate zip files PHP

    PHP php saved by 50 people
    posted on September 13, 2007 by lmcdougall
  25. FAVCheck for AJAX Request

    PHP ajax php saved by 50 people
    posted on September 12, 2006 by TC
  26. FAVImport CSV File

    PHP data import textmate read csv excel saved by 46 people
    posted on August 7, 2006 by tylerhall
  27. FAVEmail Encoder

    PHP email javascript php html saved by 46 people
    posted on July 15, 2006 by moikirsch
  28. FAVPHP: Sending Email (Text/HTML/Attachments)

    PHP php mail html text send attachment mime saved by 44 people
    posted on April 29, 2008 by funkmyer
  29. FAVDays ago function

    PHP time date days ago saved by 44 people
    posted on April 14, 2008 by patcullen
  30. FAViPhone & iPod Detection

    PHP php detection mobile iphone ipod saved by 42 people
    posted on February 19, 2009 by sidisinsane
  31. FAV301 Redirect Google Safe

    PHP redirect google 301 saved by 42 people
    posted on April 16, 2007 by tylerhall
  32. FAVFile download with speed limit

    PHP file download speed saved by 41 people
    posted on March 11, 2008 by localhorst
  33. FAVDownload File

    PHP http file download save saved by 39 people
    posted on November 27, 2006 by tylerhall
  34. FAVread images of directory

    PHP image array saved by 39 people
    posted on August 6, 2006 by luman
  35. FAVGzipping your CSS

    PHP css php gzip obgzhandler saved by 37 people
    posted on February 12, 2008 by johnself
  36. FAVCalculate Age

    PHP AGE CALCULATION YEARS saved by 35 people
    posted on October 9, 2006 by sorehead
  37. FAVFile Size

    PHP file size saved by 35 people
    posted on August 3, 2006 by luman
  38. FAVRegex (regular expression) to match a URL

    PHP regex url match saved by 34 people
    posted on March 21, 2007 by tylerhall
  39. FAVEasy Excel export from PHP

    PHP php tables excel saved by 33 people
    posted on October 8, 2008 by stavelin
  40. FAVCopyright Year

    PHP year copyright saved by 33 people
    posted on January 13, 2008 by j_junyent
« Prev [Page 1 of 97] Next »