Welcome To Snipplr
Everyone's Recent Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Fecha en formato dd/mm/yyyy o dd-mm-yyyy retorna la diferencia en dias
0
766
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
908
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
1102
posted 16 years ago by isaac
This snipped is split in two sections: Actionescript 3 and PHP
2
795
posted 16 years ago by gfazioli
This function can validate and parse UK postcode like SW1A 1AA in to formated array.
2
1207
posted 16 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
707
posted 16 years ago by tigercore
A small function I made to chmod directories and files recursively, with different permissions.
2
977
posted 16 years ago by Tenzer
Stolen from the mentioned URL - this is used to make SPRY Framework work together with MYSQL.
2
823
posted 16 years ago by Nils
Il suffit de créer une page PHP et y placer un phpinfo() ou si vous avez accès au serveur en ligne de commande (Putty, WinSCP, ...), vous pouvez tapez cette commande. Dans l'exemple, nous souhaitons savoir si l'extension openssl est présente et no...
0
639
posted 16 years ago by cyo
An easy debug trick: gives you a variable that you can print in any tpl.php to find out what vars you have available there.
1
784
posted 16 years ago by berkes
CSS files for larger sites can become pretty large themselves. Gzipping or compressing these files has shown to provide a reduction in the neighborhood of 70-80% of the original file size, a fairly significant 'weight loss'.
16
2510
posted 16 years ago by johnself