Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 39 40 41 42 43 ... 63
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 2234 posted 16 years ago by aristoworks
1 1590 posted 16 years ago by joet3ch
This is a tutorial I've found for integrate Facebook Connect function with your web community.
1 2282 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 1953 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 2667 posted 16 years ago by Almorca
http://twitter.com/jose_506
0 2038 posted 16 years ago by jose_506
This is a class/demonstration for creating dynamic properties and storing them in an array
1 1516 posted 16 years ago by mpcircuitry
0 2214 posted 16 years ago by loric
See the contents within a directory and print them out.
0 1951 posted 16 years ago by chrisaiv
Handy function that allows you get some data on a file
0 1808 posted 16 years ago by chrisaiv
Place in your functions.php file and call it in your theme like this: <?php>
1 3355 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 2143 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 2040 posted 16 years ago by ginoplusio
1 1696 posted 16 years ago by ReeceMarsland
0 1960 posted 16 years ago by ReeceMarsland
OOP style getters and setters in PHP.
1 1345 posted 16 years ago by Alexw
0 1892 posted 16 years ago by yazu
Strips out every character except 0-9
0 1653 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 1602 posted 16 years ago by iloveitaly
A PHP class that creates html controls
1 1919 posted 16 years ago by mpcircuitry
This is the first version of my PHP DB connection class using ODBC
0 2211 posted 16 years ago by mpcircuitry
Function to detect user language in php.
2 1792 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 1597 posted 16 years ago by stephanepericat
This is the code to make a simple gallery really fast, with php, jquery and a dir full of pictures.
2 2906 posted 16 years ago by ginoplusio
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 1669 posted 16 years ago by Oldarney
Set the default timezone for date/time functions to use if none is set on the server.
0 1917 posted 16 years ago by AzizLight
0 1314 posted 16 years ago by connordothu
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 1668 posted 16 years ago by SmpleJohn
1 ... 39 40 41 42 43 ... 63