Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 56 57 58 59 60 ... 64
1 537 posted 14 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 584 posted 14 years ago by donkawechico
Very minimal. Some homegrown API seeds from a while ago. Just posting for use as some php examples.
0 481 posted 14 years ago by mandric
the above url has some helpful parameters
1 474 posted 14 years ago by cori
0 454 posted 14 years ago by iTony
3 469 posted 14 years ago by multani
Este script calcula la edad en años a partir de una fecha dada y la resta con la actual.
0 459 posted 14 years ago by isaac
Fecha en formato dd/mm/yyyy o dd-mm-yyyy retorna la diferencia en dias
0 586 posted 14 years ago by isaac
This changes the date format from y-m-d to d-m-y on PHP
3 1675 posted 14 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 673 posted 14 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 840 posted 14 years ago by isaac
0 364 posted 14 years ago by wintondeshong
got this as part of an example on the adobe cookbook site
1 621 posted 14 years ago by mswallace
1 404 posted 14 years ago by jesse
This is the basic edit action suggested by the CakePHP Manual
1 343 posted 14 years ago by jesse
This snipped is split in two sections: Actionescript 3 and PHP
2 603 posted 14 years ago by gfazioli
0 417 posted 14 years ago by iTony
1 432 posted 14 years ago by soxiam
It gets images randomly from folder that you've pointed.
4 602 posted 15 years ago by skywalker
4 599 posted 15 years ago by mswallace
This function can validate and parse UK postcode like SW1A 1AA in to formated array.
2 894 posted 15 years ago by naz
This will always show the correct date... so it'll say "Copyright 2008 Comapany Name" now, and at exactly midnight on 1st January 2009, it'll say "Copyright 2009 Company Name". Simple!
2 532 posted 15 years ago by tigercore
A small function I made to chmod directories and files recursively, with different permissions.
2 749 posted 15 years ago by Tenzer
Stolen from the mentioned URL - this is used to make SPRY Framework work together with MYSQL.
2 632 posted 15 years ago by Nils
1 794 posted 15 years ago by dbug13
0 443 posted 15 years ago by Wiederkehr
1 ... 56 57 58 59 60 ... 64