Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 100 101 102 103 104 ... 147
Strips out every character except 0-9
0 1282 posted 16 years ago by jmiller
Put this at the top of your CodeIgniter models, controllers, libraries and helpers to restrict direct access to them.
1 2313 posted 16 years ago by AzizLight
Before: ` Array ( [0] => Array ( [total_sessions] => 24 [study_type_id] => 1 ) [1] => Array ( [total_sessions] => 24 [study_type_id] => 2 )...
0 1196 posted 16 years ago by iloveitaly
A PHP class that creates html controls
1 1492 posted 16 years ago by mpcircuitry
This is the first version of my PHP DB connection class using ODBC
0 1785 posted 16 years ago by mpcircuitry
Function to detect user language in php.
2 1395 posted 16 years ago by ginoplusio
Calculate dir size recursive, follow the link above because the version above is better.
0 1491 posted 16 years ago by ginoplusio
an easy-to-use function to connect to your del.icio.us account and perform a query. query commands can be found on their api help: http://delicious.com/help/api
1 1242 posted 16 years ago by stephanepericat
0 1315 posted 16 years ago by gd6d
I whipped this up after finding that my worst fears were true, pathinfo is slow. Top that with in_array and you've got your self some heavy code. Nothing like regex to speed things up. This little code checks the extension of a path to see if it i...
0 1302 posted 16 years ago by Oldarney
Set the default timezone for date/time functions to use if none is set on the server.
0 1496 posted 16 years ago by AzizLight
Of course the Plugin from wpml.org has to be installed, the file "wpml-integration.php" from docs/theme-integration has to be copied into your theme-directory and the call include "wpml-integration.php"; has to be copied to your functions.php. After...
0 1182 posted 16 years ago by zartgesotten
0 982 posted 16 years ago by connordothu
This is an regular expression to match an HTML Tag from a given input.
0 1519 posted 16 years ago by rupakdhiman
This is a code to match an IP Address from a source.
0 1614 posted 16 years ago by rupakdhiman
/modules/mod_mainmenu/helper.php line 349
0 1279 posted 16 years ago by nico65
Den folgenden Code-Fragment im Kopfbereich (header.php) einfügen.
0 1198 posted 16 years ago by Perun
0 1098 posted 16 years ago by Perun
0 1226 posted 16 years ago by Perun
This is using list items to create the calendar so it is very flexible with CSS. Right now it's just displaying dummy data, but you can easily integrate a mysql call into the loop.
3 1264 posted 16 years ago by SmpleJohn
This helps to avoid the "duplicated content" indexation by google on wordpress comment pages by changing the post content to the_excerpt ONLY in comment pages.
0 3529 posted 16 years ago by DarkPepe
Since PHP doesn't have a builtin imagecreatefrombmp, this allows users to upload bmp files and you can handle them and create a different image type from it.
0 1453 posted 16 years ago by gms8994
This properly handles transparencies for PNG/GIF.
0 1379 posted 16 years ago by gms8994
Count how many users are connected to a site (execute this function in every page, put it in the header).
1 1867 posted 16 years ago by ginoplusio
1 ... 100 101 102 103 104 ... 147