Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 137 138 139 140 141 ... 147
If you had seen some errors in the code, please send me notice about it on the: [email protected] Thanks, K.Karpenko
1 1800 posted 18 years ago by LoRd1990
6 2416 posted 18 years ago by LoRd1990
Taken from : http://www.phpfreechat.net/forum/viewtopic.php?pid=7587 See also this class : http://www.phpbuilder.com/snippet/download.php?type=snippet&id=2205
1 1602 posted 18 years ago by clapfouine
Array of Countries in Turkish language.
0 1982 posted 18 years ago by skywalker
Place the first function, phptemplate_links() in your template.php file. Alternatively (and IMO better) is to name the function your_theme_name_links() where your_theme_name is the name of your theme. From here on, you can add theme functions like...
2 2387 posted 18 years ago by berkes
1 1858 posted 18 years ago by smartalec
2 2123 posted 18 years ago by smartalec
Basically what this algorithm does is to replace the first letter of the serial number by a number (each letter represents where the banknote is originally from), then it calculates the sum of all digits. If the remaining of the division of that sum...
0 1619 posted 18 years ago by j_junyent
2 1925 posted 18 years ago by ajbatac
Sets a module's weight to the lowest number. This assures that your module is ran before all other modules. Userfull if you want your implementation of a hook to be ran first. Add this to your .install file. Replace your_modulename with the name of...
2 1888 posted 18 years ago by berkes
1 21638 posted 18 years ago by johnself
Add these lines to Drupals settings.php. Probably works on other systems, then Drupal too.
1 2289 posted 18 years ago by berkes
Searches an array $haystack for $needle. Returns the value of the element which contains the first result. Use strstr_array() for case-sensitive searches and stristr_array() for case-insensitive searches.
1 3385 posted 18 years ago by engel
0 1663 posted 18 years ago by jpdamen
Easiest way to get the last day in the current month.
2 2552 posted 18 years ago by alli14404
Not mine. Changed from the original it to suit my needs.
2 1907 posted 18 years ago by cubit
adapted from http://www.gotocode.com/art.asp?art_id=275&
0 2126 posted 18 years ago by clapfouine
blacnk stylesheet for the Sandbox WordPress theme
1 1910 posted 18 years ago by j_junyent
Show a user picture in wordpress
0 1789 posted 18 years ago by j_junyent
Add this template before functions in a library, in order to give a good description of what it is and what it does. Replace all in < and > with your values.
2 2319 posted 18 years ago by engel
Pass a user-inputted variable to this function in order to prevent SQL injection. Example: mysql_query("INSERT INTO table VALUES('" . sql_sanitize($_POST["variable") . "')"); Instead of: mysql_query("INSERT INTO table VALUES('" . $_POST["var...
34 13987 posted 18 years ago by engel
1 1816 posted 18 years ago by wintondeshong
ej: echo keepqsSinParametro('hola','hola=mundo&mundo=lindo&hola=chau'); #out = mundo=lindo
0 1763 posted 18 years ago by nicolaspar
0 1375 posted 18 years ago by haimuiba
Created for my own purposes, thought I'd share though ;) copy paste at the top of your file and it does the magic :)
31 9134 posted 18 years ago by peteypablonz
aun no acabado
2 1568 posted 18 years ago by MartinY
These two functions allow you to remove images from html page. The function returns an array of images with the absolute src and,if there are any, the alt and title attributes. Arguments to pass to get_images() are $file = html source and $url = th...
3 2499 posted 18 years ago by gandalf
1 ... 137 138 139 140 141 ... 147