Welcome To Snipplr


Everyone's Recent PHP Snippets



I think I got this one off php.net. I wish I could thank the author properly because this has been a real helper!
11 474 posted 15 years ago by koncept
A Singleton design pattern in PHP.
3 468 posted 15 years ago by koncept
2 430 posted 15 years ago by gdonald
4 1018 posted 15 years ago by assbach
1 344 posted 15 years ago by nicolaspar
0 242 posted 15 years ago by erguncaner
0 349 posted 15 years ago by gaunab
Building a SELECT with conditional WHERE parts, given from form-get parameters.
1 301 posted 15 years ago by assbach
This snippet is for use with image_attach, a small contributed module that uses image module to create nice thumbs in any node type. The template snippet makes the images show up larger in the body node, and instead of linking to itself, it links t...
2 320 posted 15 years ago by berkes
This is an example of how to use the articleHandler.class.php , this class can be found @ pietervp.com -> downloads
1 326 posted 15 years ago by pietervp
check if email address is valid
1 365 posted 15 years ago by assbach
0 258 posted 15 years ago by vanity
By Eduardo de la Torre.
2 433 posted 15 years ago by atinamedia
menu_get_item does not return a menu ID.
2 303 posted 15 years ago by berkes
0 448 posted 15 years ago by gdonald
Генерируется картинка с изображением цифр, которые пользователю предлагается ввести в форму для успешного ввода данных
1 307 posted 15 years ago by Memphys
3 386 posted 15 years ago by yonekawa
The names of the months, as returned by date('M', ...)
1 432 posted 15 years ago by collin
Sends a request to a supplied path for a given host. It can send either a GET or POST request and can pass parameters.
2 370 posted 15 years ago by ryansobol
deliciousにポストするサンプル
0 263 posted 15 years ago by jugyo
Simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.
1 509 posted 15 years ago by sorehead
This function first checks to see if PHP is set to automagically quote stuff. If it is, we first strip pre-quoted stuff, then (assuming our text isn't numeric), we properly quote everything. A good bit of room for improvement here, but at the very l...
1 344 posted 15 years ago by sorehead