Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 38 39 40 41 42 ... 147
2 1898 posted 14 years ago by farstar78
Requires youtube-dl to be in the directory.
0 1008 posted 14 years ago by mattneary
Created by me as a quick and secure way of creating a username and password for basic authentication via a .htpasswd file on an Apache server. A live demo is available at http://www.chrishair.co.uk/supgha/ Thanks.
0 1534 posted 14 years ago by hairzo
Pulls in 'main-navigation' and 'social-navigation' menus into a single UL. the key is items_wrap => %3$s
0 1523 posted 14 years ago by dan_hoerr
0 1243 posted 14 years ago by nebojsac
0 1120 posted 14 years ago by rahijain
prints "We found 'N' result(s) for 'QUERYSTRING'"
0 1160 posted 14 years ago by dan_hoerr
Ensures the admin scripts or styles will load only on your wordpress plugin settings page: - add_options_page returns a hook_suffix for the settings page of your plugin. - append this value prefixed with a dash (-) to the end of the action you ar...
0 1289 posted 14 years ago by relish
Replace non alpha-numeric characters with PHP
0 1178 posted 14 years ago by plesh
Loops through ASCII characters to display alphabet, useful for alphabetic filtering links. eg: A | B | C | D ...
0 1456 posted 14 years ago by plesh
A really handy snippet that will replace textual URLs with HTML links. Also works for email addresses.
0 2076 posted 14 years ago by plesh
0 1202 posted 14 years ago by jacksaidwhat
0 1213 posted 14 years ago by retsub79
Use in the WP loop. User's registered email account on WP must also be assigned to Gravatar.
0 1229 posted 14 years ago by jacksaidwhat
0 1135 posted 14 years ago by ahdriel
If you want to use PHP as a command line program, this code can serve s a reference to read the arguments passed to the program.
0 1362 posted 14 years ago by tcam27
1. Open lib/zend/locale/data/en.xml 2. Locate territories tag in this file 3. copy one of territory tags for the syntax and paste it within the territories tag 4. hard part here is to add country code in this file as might not be able to fin...
0 1463 posted 14 years ago by JustMadMike
Convert a string to friendly string.
0 1217 posted 14 years ago by alyssonweb
Traditionally when you have lost lists of dat you want to alternate rows for usability. The first thing everybody makes to fix this is a simple if statement loop, but this adds a number of lines and is hardly a clean solution. Additionally it require...
0 1505 posted 14 years ago by FatFolderDesigner
<?php> <!–Default> <?php> Note that sidebar.php must not always content the sidebar
0 1005 posted 14 years ago by xavsio4
1 ... 38 39 40 41 42 ... 147