Welcome To Snipplr
Everyone's Recent Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
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. 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
This snipped is split in two sections: Actionescript 3 and PHP
2
603
posted 14 years ago by gfazioli
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