Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 503 504 505 506 507 ... 553
This is to prevent a form from being inadvertently submitted.
0 1575 posted 18 years ago by ecavazos
There may be a simpler way to do this but this is the only way I could find to solve this problem. There is no Add method for basic arrays.
2 1753 posted 18 years ago by ecavazos
This is very useful if you need to populate a dropdown.
1 3498 posted 18 years ago by ecavazos
This can be useful for string preparations.
1 1635 posted 18 years ago by ecavazos
Suitable for backup scripts.
0 1419 posted 18 years ago by eszpee
A simple but usefull smarty plugin to convert a unix timestamp to any date format. Usage: {$var|convertunix:"d-m-Y"}
2 2341 posted 18 years ago by FrankBr
3 2362 posted 18 years ago by DeadLy
Use this for background images. Put it in conditional comments in the head of your doc.
3 1916 posted 18 years ago by shellydennison
Когда нет под рукой дебаггера, а всё-таки хочется посмотреть дамп массива или объекта, приходит на помощь print_r() в коде… да вот вид не оче...
0 1357 posted 18 years ago by DeadLy
All you need todo in order to use this is just to add it to your path
0 1598 posted 18 years ago by narkisr
1 1453 posted 18 years ago by Cory
2 2388 posted 18 years ago by Cory
Arbol usado para mostrar categorias dentro de una lista Cat1 ==subcat11 Cat2 ==subcat21 ====subcat211
0 1314 posted 18 years ago by lisandro
1 1347 posted 18 years ago by stylizedweb
Small query to help you relocate those modules you are not using anyways.
2 1797 posted 18 years ago by torkil
Forward users from your alias domains to your main domain automatically. Nice to have if your site has got one or more aliases. Notice that all the domain aliases have [NC,OR] at the end of the line, while the last alias and_so_on.com just has [NC]....
6 1952 posted 18 years ago by torkil
Using mod_rewrite in Apache to rewrite urls and force removal of www in urls. Good for letting search engine spiders in the right door... Insert the code in your .htaccess-file in your website's root folder.
3 2162 posted 18 years ago by torkil
Using mod_rewrite in Apache to rewrite urls and force users to use www in urls. Good for letting search engine spiders in the right door... Insert the code in your .htaccess-file in your website's root folder.
5 2242 posted 18 years ago by torkil
This script can help you control the scroll of div by a simple function. Set thr property 'scrollTop' then the scoll can be controlled.
1 1964 posted 18 years ago by multani
This function allows you to limit the amount of a string, like a sample from a post. Create a file like function_lmt_txt.php and include it to use it. Any comments to improve this are welcomed.
1 1184 posted 18 years ago by bioascii
This code is based on enlaces de paginacin posted by Web Design
2 1396 posted 18 years ago by shellydennison
If you had seen some errors in the code, please send me notice about it on the: [email protected] Thanks, K.Karpenko
1 1507 posted 18 years ago by LoRd1990
6 2098 posted 18 years ago by LoRd1990
1 ... 503 504 505 506 507 ... 553