Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged class



Just a simple script showing how to make calls to an Email script.
0 1123 posted 14 years ago by JonnySnip3r
This class can log messages to a file. If the log file becomes too large (over 1MB), the class will archive it and will create new. If there are archives older than one month, they will be deleted automatically. In the future versions I will add th...
0 1618 posted 14 years ago by stz184
View class that contains features like: - get vars inside the view with: 1) $var1 2) $this->var1 3) or $this->get( 'var1', 'defaultValue' ) - factory method for direct chaining: Lim_View::factory( 'test.php' )->set( 'var1', 'value1' )->...
0 1260 posted 14 years ago by freelancephp
0 1315 posted 15 years ago by sb_01
0 1298 posted 15 years ago by sorinspanu
<p>Como utilizar las clases de Zend Framework desde nuestro proyecto web que no trabaja con el Framework de Zend en modo MVC.</p><p>Paso 1.<BR> Bajamos las librería de ZF desde el sitio oficial http://framework.zend.com/download/latest/<BR>Nota: Est...
0 1298 posted 15 years ago by eom
0 1443 posted 15 years ago by Myrddin
Detect and echo browser version including differentiating between Chrome and Safari.
3 2037 posted 15 years ago by vagrantradio
Here is an old Auth class that i made :)
0 1544 posted 15 years ago by cigraphics
uFlex or userFlex is an all in one PHP user class that provides developers with a simple yet secured, reliable and flexible framework like structure to authenticate their sites and applications. The purpose of uFlex is to handle the tedious processes...
1 2067 posted 15 years ago by ptejada
Managing globals with the registry pattern. This class provides lazy loading functionallity. This means it is possible to add a callback or class (with arguments) which will be called or instanciated when it is being used for the first time.
0 1602 posted 15 years ago by freelancephp
Just a beginning, hoping to refine this ASAP.
0 1608 posted 15 years ago by alvincrespo
Every MySQL class for PHP I've seen so far has been an epic disappointment. This will not lead you to feel the same way. Enjoy!
0 1026 posted 15 years ago by jrgp
A very simple class that quickly gets you interacting with a database, as long as you know sql :P.
1 2016 posted 16 years ago by r3morse
I rewrote [this snippet](http://snipplr.com/view/15402/php-password-generator/). Usage: $password1 = new Password; $password2 = new Password; echo '<p>' . $password1->generate() . '</p>'; echo '<p>' . $password2->generate(array('leng...
1 1622 posted 16 years ago by AzizLight
Function to add custom body class in th Thesis theme for WordPress...Thanks to @girliegeek!
1 1692 posted 16 years ago by joelhaus
2 1646 posted 16 years ago by JREAM
A simple class layout template that I always use to get me started. Nothing fancy. Just your basic structure.
1 1539 posted 16 years ago by StrawMan
1 1328 posted 16 years ago by iTony
Thanks to James Padolsey for sharing this script with everyone on his blog, link above.
0 1091 posted 16 years ago by DrewDouglass
0 1120 posted 16 years ago by martin_rusev
1 1244 posted 16 years ago by vali29
Skor PHP Template class can assign individual variable values or arrays with several variable values. A separate sub-class extends the base class to support delimited template section replacements.
0 1141 posted 16 years ago by Agundur
0 1469 posted 17 years ago by iTony