Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Similar to the file_put_contents() function in PHP5 built for PHP4 (will not cause errors on a server running PHP5).
0
265
posted 14 years ago by neogeek
A quick and simple way to search a MySQL database. Example: mysql_search('items', 'title tags', isset($_GET['q'])?$_GET['q']:'', Array('columns'=>'*', 'method'=>'OR', 'extra_sql'=>'AND active = "true" ORDER BY id DESC'));
67
1337
posted 14 years ago by neogeek
This is a collection of US States (Long and abbreviated names) and world countries. There are a few examples of usage below the collections.
41
1176
posted 14 years ago by neogeek
PHP
Intercepta los errores de ejecución y los envÃa por mail al administrador con detalle del contexto
3
241
posted 14 years ago by cochambre
Esta funcion toma valores del espacio global $HTTP_*_VARS desde un array
en la llamada a la funcion, y si existen y tienen contenido, las registra
como globales para que puedan ser accedidas a continuación.
Debe recibir una lista de elementos en...
1
237
posted 14 years ago by Navegante
This simple function allows you to fetch files from other web sites in PHP4 without needing to install any extensions for PHP.
1
269
posted 14 years ago by neogeek
The standard tag for the new class Smarty_Backoffice in my application.
0
127
posted 14 years ago by Bunker