Welcome To Snipplr


Everyone's Recent Snippets Tagged code



Detect and echo browser version including differentiating between Chrome and Safari.
3 201 posted 10 years ago by vagrantradio
0 222 posted 10 years ago by Jamie
This PHP class lets you clean and repair html code. WHAT IT DOES: delete closed tags without their opening tag, fix open tag without close, closing them automatically, check bad nesting and fix them, fix bad quotes in attributes, merge different styl...
2 449 posted 10 years ago by ginoplusio
0 202 posted 10 years ago by jonathanbp
I first posted this code on my http://sitefromscratch.com site, but I decided to repost it up here on snipplr.com with some of the most recent modifications I've made. This code validates through W3C Strict XHTML Standards.
14 409 posted 11 years ago by smoothdzion
This snippet is just an upgrade to the "http://snipplr.com/view/7396/php-file-extension-case-changer/" code. This particular code works on image files... although you can just change this line [if (preg_match("/(jpg|gif|png|bmp)/",$ext)) ] to target...
0 311 posted 11 years ago by el-artiste
comment out HTML
0 164 posted 11 years ago by thesmu
1 233 posted 11 years ago by Shifter
http://www.trentmueller.com/blog/search-and-replace-wildcard-characters-in-dreamweaver.html -and- http://www.webmasterworld.com/forum46/1288.htm
0 144 posted 11 years ago by rwczippy
Useful for SBApplication scripting bridge.
0 242 posted 11 years ago by iloveitaly
send in an event it returns the key that you pressed if it was alphanumeric or backspace otherwise it returns "-1" use with getKeyCode and isAlphaNumeric
0 124 posted 11 years ago by jlvallelonga
to use this function send in an ASCII character code (use my getKeyCode function) it will return true if the code corresponds to a printable character (not backspace code - 8, enter code - 13, or "undefined")
0 102 posted 11 years ago by jlvallelonga
Dynamically change the content of meta tags from the code behind. This allows you to feed the meta tags with content from a database or other dynamic content.
0 166 posted 11 years ago by blackf0rk
Insert this code into the 'about me' section when editing your myspace profile.
0 115 posted 12 years ago by xlovergirl
This is a simple method of validating a 9-digit zip code using PHP and regular expressions
3 499 posted 12 years ago by aristoworks
0 152 posted 12 years ago by udayrayala
0 136 posted 12 years ago by udayrayala
0 122 posted 12 years ago by udayrayala
0 126 posted 12 years ago by udayrayala
0 119 posted 12 years ago by udayrayala
1 122 posted 12 years ago by udayrayala
0 145 posted 12 years ago by udayrayala
0 204 posted 12 years ago by sondosia
1 156 posted 12 years ago by darkphotn
Yes, this is valid code. Designed by myself, unless otherwise noted.
0 240 posted 12 years ago by darkphotn