Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged code



« Prev 1 2
  1. FAV

    Code to upload a file in PHP

    Code to upload a file in PHP
    PHP 13 views posted 1 year ago by devquora
  2. FAV

    Example of PHP Sample SMS code - Messaging API

    BroadNet Technologies furnishes you with a variety of PHP Sample SMS code examples and programming objects, and assist you in connecting to our gateway via the PHP script. Sending your messages via our designed PHP SMS Sample Code is easier than you...
    PHP 20 views posted 2 years ago by Broadnet
  3. FAV

    Get Current Server Path in PHP

    Get Current Server Path in PHP
    PHP saved by 3 people 11 views posted 4 years ago by ursdeep
  4. FAV

    An Utility to Search Text in All Files of Any Directory in PHP

    An Utility to Search Text in All Files of Any Directory in PHP
    PHP saved by 5 people 14 views posted 4 years ago by ursdeep
  5. FAV

    Shorthand for Ternary Operator in PHP

    Shorthand for Ternary Operator in PHP
    PHP saved by 3 people 6 views posted 4 years ago by ursdeep
  6. FAV

    Different ways to change the Maximum Execution time for PHP Scripts

    Different ways to change the Maximum Execution time for PHP Scripts
    PHP saved by 2 people 11 views posted 4 years ago by ursdeep
  7. FAV

    Country list with country code and continent

    Here's a country list with continent and country by country code!
    PHP 17 views posted 6 years ago by kilise
  8. FAV

    Minify code function

    A usefull function to minify code or string. This is part of the WPelements library class available on Github. Feedback / suggestions / improvements are welcome.
    PHP 14 views posted 7 years ago by krike
  9. FAV

    Display the source code of a webpage.

    Want to be able to display the source code of any webpage, with line numbering? Here is a simple code snippet to do it. Just modify the url on line 2 at your convenience. Or even better, make a pretty function according to your needs.
    PHP saved by 4 people 15 views posted 7 years ago by o0110o
  10. FAV

    Get YouTube Video ID [Very robust]

    This will get the 11-character YouTube video ID from any valid YouTube URL. Based on http://snipplr.com/view/57065/get-youtube-video-id/ but made more robust to handle additional URL inputs
    PHP 29 views posted 8 years ago by jmiller
  11. FAV

    Joomla - Execute some code on home page and other code on all other pages

    This will let you execute certain scripts on the home page and other scripts on the other pages of the site.
    PHP 8 views posted 8 years ago by dburgess
  12. FAV

    ISO 3166-1 alpha-2

    ISO 3166-1 alpha-2 php array
    PHP 6 views posted 8 years ago by freezy
  13. FAV

    Allows to write code on your blog using the 'pre' tags

    PHP 3 views posted 8 years ago by ignacio
  14. FAV

    Wordpress: Escape HTML Entities in Comments

    PHP 10 views posted 8 years ago by alp
  15. FAV

    Airport Code API

    PHP 5 views posted 8 years ago by erraja_07
  16. FAV

    ISO 639 language codes as PHP array

    PHP saved by 6 people 20 views posted 9 years ago by krillzip
  17. FAV

    Singapore Postal Code to District Name

    Takes a Singapore Postal Code and outputs its corresponding district name
    PHP 6 views posted 9 years ago by dougunplugged
  18. FAV

    How to use Google HTTP Geocoding

    PHP 5 views posted 9 years ago by adampatterson
  19. FAV

    Wordpress 2nd Level Menu Subpages

    This is what I wanted:\r\nI had a structure like this:\r\n-Artist\r\n --Peter Miller\r\n ---Pictures\r\n ---Press\r\n ---Videos\r\n\r\nand wanted to have the sub-sub-Menu when located on the \"Peter Miller\"-Page. \r\nSo that on \"Peter...
    PHP 7 views posted 9 years ago by zartgesotten
  20. FAV

    Php Feedback Form w/ Session and Browser Info

    PHP 6 views posted 9 years ago by vagrantradio
  21. FAV

    Php Browser Detection Class

    Detect and echo browser version including differentiating between Chrome and Safari.
    PHP saved by 15 people 11 views posted 9 years ago by vagrantradio
  22. FAV

    Block malicious URL Requests on Wordpress

    PHP 4 views posted 9 years ago by BoNzO
  23. FAV

    Display Custom Fields Outside The Loop in WordPress

    PHP saved by 2 people 5 views posted 9 years ago by BoNzO
  24. FAV

    How to fix dirty HTML code with PHP

    This PHP class lets you clean and repair html code. WHAT IT DOES: delete closed tags without their opening tag, fix open tag without close, closing them automatically, check bad nesting and fix them, fix bad quotes in attributes, merge different styl...
    PHP saved by 6 people 21 views posted 10 years ago by ginoplusio
  25. FAV

    Code to change the file extensions of images to lowercase

    This snippet is just an upgrade to the "http://snipplr.com/view/7396/php-file-extension-case-changer/" code. This particular code works on image files... although you can just change this line [if (preg_match("/(jpg|gif|png|bmp)/",$ext)) ] to target...
    PHP 10 views posted 10 years ago by el-artiste
  26. FAV

    Validate Canadian Postal Code

    PHP saved by 1 person 9 views posted 10 years ago by Shifter
  27. FAV

    Custom Fields Template in WP - corresponding code snippets

    PHP saved by 8 people 6 views posted 10 years ago by kstetson
  28. FAV

    Create Unique Code Replacing Lookalike Characters

    PHP 1 views posted 10 years ago by bgriffiths
  29. FAV

    PHP (RegEx) Zip Code Validation

    This is a simple method of validating a 9-digit zip code using PHP and regular expressions
    PHP saved by 9 people 19 views posted 11 years ago by aristoworks
  30. FAV

    Provincias españa en array

    Me he basado en el combo que he encontrado en snippler por luman por eso empieza el índice en 2
    PHP saved by 9 people 12 views posted 12 years ago by isaac
« Prev 1 2