Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 514 515 516 517 518 ... 553
1 1448 posted 18 years ago by lmcdougall
3 1735 posted 18 years ago by lmcdougall
17 10581 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 12281 posted 18 years ago by lmcdougall
2 1616 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 1854 posted 18 years ago by lmcdougall
2 2014 posted 18 years ago by lmcdougall
2 1534 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 2275 posted 18 years ago by skatan
Needs object detection to be completely unobtrusive
3 1578 posted 18 years ago by skatan
Needs to include object detection to be completely unobtrusive
1 1402 posted 18 years ago by skatan
Manipulate the names of all the files in a folder in bash
4 1876 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 1856 posted 18 years ago by ches
0 1312 posted 18 years ago by vanne
an HTML template for form CSS styling
11 3245 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 1989 posted 18 years ago by andyhartleeds
Strip out non-alphanumeric characters. Very useful for use with filenames.
3 1920 posted 18 years ago by andyhartleeds
Include JavaSript files.
0 1187 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 1570 posted 18 years ago by wolfie
1 ... 514 515 516 517 518 ... 553