Welcome To Snipplr


Everyone's Recent Snippets



1 ... 514 515 516 517 518 ... 553
1 1436 posted 18 years ago by lmcdougall
3 1729 posted 18 years ago by lmcdougall
17 10547 posted 18 years ago by lmcdougall
Ej: $ziper = new zipfile(); $filename1 = 'images/imagen1.jpg'; $filename2 = 'images/imagen2.jpg'; $fileZip = 'images/imagen.zip'; $ziper->addFile(file_get_contents($filename1),$filename1); $ziper->addFile(file_get_contents($filename2),$filename...
22 12253 posted 18 years ago by lmcdougall
2 1599 posted 18 years ago by lmcdougall
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'));
5 1846 posted 18 years ago by lmcdougall
2 2003 posted 18 years ago by lmcdougall
2 1524 posted 18 years ago by micmath
Script takes links that are not on your domain and opens them in a new window. This code allows for XHTML strict validation and meets Accessibility criteria on opening new windows.
5 2264 posted 18 years ago by skatan
Needs object detection to be completely unobtrusive
3 1571 posted 18 years ago by skatan
Needs to include object detection to be completely unobtrusive
1 1395 posted 18 years ago by skatan
Manipulate the names of all the files in a folder in bash
4 1868 posted 18 years ago by benpjohnson
Obviously there's no real crytpo here -- use this for cases like regenerating and emailing a user password.
1 1845 posted 18 years ago by ches
0 1298 posted 18 years ago by vanne
an HTML template for form CSS styling
11 3232 posted 18 years ago by maid450
A way to call a function before the window is unloaded/refreshed/etc. Used in the first E-shot Management System. Useful for auto-saving data/content before the window is closed or refreshed.
1 1981 posted 18 years ago by andyhartleeds
Strip out non-alphanumeric characters. Very useful for use with filenames.
3 1911 posted 18 years ago by andyhartleeds
Include JavaSript files.
0 1182 posted 18 years ago by Diego
This shows how to use a module that normally needs a 'qw' attachment to the use statement (hint: its the = sign). You can add others by using comma separated values.
0 1559 posted 18 years ago by wolfie
1 ... 514 515 516 517 518 ... 553