Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 133 134 135 136 137 ... 147
A Views export for Drupal 5. A block that only site admin and site manager roles can access, showing unpublished comments for blog entry content type.
3 888 posted 16 years ago by shrop
include file protection...
2 768 posted 16 years ago by skywalker
Another way of showing long text to end user...
0 869 posted 16 years ago by skywalker
1 905 posted 16 years ago by iTony
this function was provided to me by my partner in crime......thanks superchicken
0 668 posted 16 years ago by bsisco
This is a version of Textile that only accepts paragraps, bold, italics, links, and images. Enjoy.
1 867 posted 16 years ago by evanwalsh
4 802 posted 16 years ago by iTony
I was looking for a way to post new articles remotely, and cross domain. I only needed to post new articles, not read, edit or anything like that, so I did not need a whole GUI or any other Interface like those WP-Desktop-clients. I wrote this script...
0 936 posted 16 years ago by j_junyent
Is the mail I sent, read or unread by the receiver.
1 796 posted 16 years ago by skywalker
1 959 posted 16 years ago by ibomb
Any time I make PHP applications that interact with a database, I use this script. It generates one or more self-populating "View Objects" (a class that represents a single record from a DB). For example, rather than access a MySQL record-set by arra...
1 953 posted 16 years ago by donkawechico
Gets the present time and date in PHP and formats it for input into a MYSQL database DATETIME field
1 586 posted 16 years ago by TimFletcher
Very minimal. Some homegrown API seeds from a while ago. Just posting for use as some php examples.
0 774 posted 16 years ago by mandric
the above url has some helpful parameters
1 759 posted 16 years ago by cori
The lazy way to generate XHTML-valid width and height attributes for your images. This is incredibly inefficient, though I believe (ref?) that calls to getimagesize() are cached.
2 729 posted 16 years ago by AdrianShort
0 756 posted 16 years ago by iTony
Today, tomorrow, yesterday and other date calculations
4 785 posted 16 years ago by stancell
Sample which shoows how to compare objects by content.
0 831 posted 16 years ago by stancell
3 801 posted 16 years ago by multani
Features: Complies to version 2.1 of the vCard specification Supports the following attributes: * Name * Formatted Name * Phone and fax numbers * Birthday * Address * Address label * email address * notes...
6 2258 posted 16 years ago by jonhenshaw
0 591 posted 16 years ago by estebant
Este script calcula la edad en años a partir de una fecha dada y la resta con la actual.
0 753 posted 16 years ago by isaac
Fecha en formato dd/mm/yyyy o dd-mm-yyyy retorna la diferencia en dias
0 920 posted 16 years ago by isaac
This changes the date format from y-m-d to d-m-y on PHP
3 2434 posted 16 years ago by isaac
This changes the date format from y-m-d to d-m-y on PHP. It's easy to change the - to / or spaces...
0 1128 posted 16 years ago by isaac
This changes the date format from d-m-y to y-m-d on PHP. It's easy to change the - to / or spaces...
1 1346 posted 16 years ago by isaac
Takes a date and returns a string describing how long ago that date was. examples: 3 seconds ago, 5 days ago, 2 years ago, you get the idea :)
17 4862 posted 16 years ago by patcullen
1 ... 133 134 135 136 137 ... 147