Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 ... 36 37 38 39 40 ... 58
0 1548 posted 16 years ago by Zwendel
PHP provides many date manipulation devices and an entire suite of date functionality with the datetime class. However, this does not address date validation, that is, what format a date is received in. The PHP strtotime() function will accept many f...
1 1921 posted 16 years ago by kanampo
Shows the sub pages of a parent page, and also the parent page as a link.
1 1725 posted 16 years ago by davebowker
Create an excerpt from the main copy, removing any image or other HTML tag markup so it will be clean. In this case the length is 160 characters, change that number to change the length of the excerpt
0 1263 posted 16 years ago by cessnajumpin
I wrote this really quick and dirty script to paginate a very large chunk of text. A client site was setup with the understanding their about page would consist of 5-6 paragraphs but their biography ended up being 60 paragraphs. At the end of the d...
0 1436 posted 16 years ago by aristoworks
This is a simple function that will return an array of all the dates corresponding to the day 'Monday' for a given year. It's pretty simple and may not be the cleanest way but it works for my purpose.
0 1945 posted 16 years ago by aristoworks
1 1313 posted 16 years ago by joet3ch
This is a tutorial I've found for integrate Facebook Connect function with your web community.
1 1978 posted 16 years ago by ginoplusio
Detect if the user is browsing from and iPhone (or iPod) to server up specific content. For example, iPhone users can receive youtube video content instead of vimeo, etc.
1 1696 posted 16 years ago by ericschweichler
Class has simple interface to download any file from a server without displaying the location of the file.
2 2356 posted 16 years ago by Almorca
http://twitter.com/jose_506
0 1803 posted 16 years ago by jose_506
This is a class/demonstration for creating dynamic properties and storing them in an array
1 1310 posted 16 years ago by mpcircuitry
0 1969 posted 16 years ago by loric
See the contents within a directory and print them out.
0 1639 posted 16 years ago by chrisaiv
Handy function that allows you get some data on a file
0 1561 posted 16 years ago by chrisaiv
Place in your functions.php file and call it in your theme like this: <?php>
1 3060 posted 16 years ago by afj176
Modified version of the script created by Dave Stevens, Enables the user to input their credentials on a webpage rather than having to change the actual php script code. Changes: Changed $user,$pass,$term This is a modified script, the original...
0 1913 posted 16 years ago by jonathonmaguire
I’ve made this class that can use normal session variables, or cookies. This class can use cookies in two ways: store a single variable in each cookie, or pack many variables, encrypt, and store them into cookies. Now I always use this class whe...
2 1771 posted 16 years ago by ginoplusio
1 1446 posted 16 years ago by ReeceMarsland
0 1725 posted 16 years ago by ReeceMarsland
OOP style getters and setters in PHP.
1 1140 posted 16 years ago by Alexw
0 1627 posted 16 years ago by yazu
Strips out every character except 0-9
0 1439 posted 16 years ago by jmiller
Before: ` Array ( [0] => Array ( [total_sessions] => 24 [study_type_id] => 1 ) [1] => Array ( [total_sessions] => 24 [study_type_id] => 2 )...
0 1355 posted 16 years ago by iloveitaly
A PHP class that creates html controls
1 1644 posted 16 years ago by mpcircuitry
This is the first version of my PHP DB connection class using ODBC
0 1949 posted 16 years ago by mpcircuitry
Function to detect user language in php.
2 1557 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 1381 posted 16 years ago by stephanepericat
1 ... 36 37 38 39 40 ... 58