Code Snippets
48
snippets in
13
languages
.htaccess
ASP
.NET
ColdFusion
CSS
HTML
JavaScript
jQuery
JSP
Perl
PHP
Python
ROR
Page 1 of 2
1
2
Actions:
Download
Demo
Name
Category
Database
Level
Actions
How to Block IP Addresses with PHP
PHP
None
Intermediate
Using File::Basename to get file extensions
Perl
None
Intermediate
Script Execution Time
PHP
None
Beginner
iPhone Detector
.htaccess
None
Beginner
Force charset utf-8
.htaccess
None
Beginner
Formatting today’s date
ColdFusion
None
Beginner
Show today’s date
ColdFusion
None
Beginner
Email Address Validation
Ruby on Rails
None
Beginner
IE only HTML element
HTML
None
Beginner
Who’s Online
ASP
None
Intermediate
Moved Permanently 301 Redirect
ASP
None
Beginner
Block Multiple IP Addresses
ASP
None
Intermediate
Block IP Address
ASP
None
Intermediate
Retrieving the Visitors IP Address
ASP
None
Beginner
Log a visitors IP address in a text file
ASP
Flat File
Beginner
When was the file last accessed?
ASP
Flat File
Beginner
When was the file last modified?
ASP
Flat File
Beginner
When was the file created?
ASP
Flat File
Beginner
Reading a Text File
ASP
Flat File
Beginner
Count words in a sentence
ASP
None
Beginner
Detect IE5 or IE6
PHP
None
Beginner
Get File Extension
PHP
None
Intermediate
IE Detection
PHP
None
Beginner
DOCTYPES
HTML
None
Beginner
Empty Table Markup
HTML
None
Beginner