Welcome to the PHP Cookbook, a collaborative collection of techniques from the PHP community.
This living collection allows programmers to be more productive with PHP.
PHP Cookbook code is freely available for use and review.
We invite you to contribute regular expressions, snippets of code, comments, and ratings for recipes.
| View: |
Editors Pick
|
Approved
|
Not Approved
|
All
|
 |
|
|
 |
|
SPICE for PHP
(Stephen Chappell)
SPICE has been in development since 2002. The first version was implemented
on a graphing ...
Modified: 2008/04/30 17:30
|
 |
 |
 |
|
Bass class for PDO abstraction
(Jeff Griffiths)
This is a simple base class that extends PDO and provides some useful helper functions such as ...
Modified: 2007/06/25 16:54
|
 |
 |
 |
|
Bass class for PDO abstraction
(Jeff Griffiths)
This is a simple base class that extends PDO and provides some useful helper functions such as ...
Modified: 2007/06/25 16:54
|
 |
 |
 |
|
Simple Example demonstrating Ajax Implementation using Perl
(Rajkumar Jain)
In the example below, we have a table containing Student names and Marks. Every row has an Edit ...
Modified: 2007/03/11 07:37
|
 |
 |
 |
|
Perl Script to obtain data file in a desired format
(Rajkumar Jain)
This discusses about using Perl, how we can obtain a data file in a particular desired format, ...
Modified: 2007/03/11 07:30
|
 |
 |
 |
|
Installing Perl modules on Windows
(Rajkumar Jain)
This discusses about installing Perl modules on Windows, using PPM tool or manually.
Modified: 2007/03/11 07:25
|
 |
 |
 |
|
Single Linked List
(Andre Wanderley de Souza)
As `throw new Exception' is just avaliable in
php 5, for use php 4 use that call shoud be ... Rated: 5 out of 5 by 1 user(s),
Modified: 2006/10/09 11:52
|
 |
 |
 |
|
Microsoft Access Database Connectivity (DSN-Less)
(Eric Guanlao)
An example of connecting to a Microsoft Access database, executing an SQL query, and displaying the ... Rated: 5 out of 5 by 4 user(s),
Modified: 2006/08/29 03:08
|
 |
 |
 |
|
PHP Commify Function
(Alvin Estevez)
This function inserts a comma separator into every 3 digits. For example, 100000 will be ... Rated: 4 out of 5 by 3 user(s),
Modified: 2006/07/07 21:37
|
 |
 |
 |
|
File Uploading in PHP BY ROHIT D'SOUZA
(rohit d'souza)
This is a simple code for file uploading in php
Modified: 2006/05/05 04:08
|
 |
 |
 |
|
tinySendMail
(Dave Silvia)
Frequently the mail functions of php are inaccessible due to no access to a sendmail or equivalent ... Rated: 5 out of 5 by 1 user(s),
Modified: 2006/01/08 14:14
|
 |
 |
 |
|
Random Passwords
(Edward Williams)
length = how long the password is
lconsonants = adds lower case consonants -- 1=on || ...
Modified: 2005/11/13 14:42
|
 |
 |
 |
|
Pass Javascript arrays to PHP
(Noah Spurrier)
This is a Javascript function that will convert a Javascript array to a string in PHP serialized ... Rated: 5 out of 5 by 2 user(s),
Modified: 2005/05/16 11:45
|
 |
 |
 |
|
Domain Class
(Sven Wagener)
This class returns the whois information an checks the availability of at least 270 different top ...
Modified: 2005/01/14 13:47
|
 |
 |
 |
|
DB_eSession PHP class facilitates having sessions stored in a MySQL database.
(Lawrence O)
DB_eSession is a feature packed PHP class that stores session data in a MySQL database rather than ... Rated: 5 out of 5 by 1 user(s),
Modified: 2004/11/28 22:16
|
 |
 |
 |
|
(Eric Koome)
Modified: 2004/09/14 07:16
|
 |
 |
 |
|
main - python-like if __name__ == __main__
(Mirek Rusin)
How to determine if we're in the (directly) launched script. Rated: 5 out of 5 by 1 user(s),
Modified: 2004/09/09 00:49
|
 |
 |
 |
|
PHP Tic Tac Toe
(Premshree Pillai)
This is a web-based Tic Tac Toe game written in PHP.
Modified: 2004/04/06 08:28
|
 |
 |
 |
|
PHP MySQL Search Class
(Stephen Bartholomew)
This class can perform a full text search over multiple columns of a MySQL database table, matching ... Rated: 5 out of 5 by 3 user(s),
Modified: 2003/10/28 19:57
|
 |
 |
 |
|
Displaying Page Processsing Time
(imam ferianto)
In addition for our page we can displaying information how much
some page processing spend time ... Rated: 2 out of 5 by 1 user(s),
Modified: 2003/06/30 14:15
|
 |
 |
 |
 |
|
|
 |