Strip HTML
4
This is a little script I wrote that copies your database through a cfquery statement
Enjoy,
Ernie
ernest.breau@gmail.com
Enjoy,
Ernie
ernest.breau@gmail.com
6
Scriptname: WhatsUpCF.cfm
Author: Ernest Breau Jr.
StartDate: 08/02/2006
EndDate: 08/02/2006
Description: This script returns the status of a web page
Dependancies: CFHTTP
Usage:
cf_WhatsUpCF
url="http://#qry_detail.DomainName#"
timeout="1"
SendMail="yes"
MailTo=""
MailFrom=""
MailServer="localhost"
var="WhatsUpCF"
Author: Ernest Breau Jr.
StartDate: 08/02/2006
EndDate: 08/02/2006
Description: This script returns the status of a web page
Dependancies: CFHTTP
Usage:
cf_WhatsUpCF
url="http://#qry_detail.DomainName#"
timeout="1"
SendMail="yes"
MailTo=""
MailFrom=""
MailServer="localhost"
var="WhatsUpCF"
12
This function is useful in helping to deter spam bots by obfuscating things such as e-mail addresses and URLs that are displayed on a web page. While it's not 100% fool proof, it does offer some protection.
Example:
$email = html_entitize('foo@baz.org');
/*
Outputs foo@baz.com
*/
Example:
$email = html_entitize('foo@baz.org');
/*
Outputs foo@baz.com
*/
21
A quick and simple function to dump a variable (array, object, string, int, etc) out into -formatted output for a web browser.
If the variable is an array or an object, you can have it returned into the another variable for later processing (i.e., through templates or e-mail). Due to lack of free time, if the variable is not an array or an object, it will ignore the $return value and print directly to output.
Future revisions will add the above mentioned functionality.
If the variable is an array or an object, you can have it returned into the another variable for later processing (i.e., through templates or e-mail). Due to lack of free time, if the variable is not an array or an object, it will ignore the $return value and print directly to output.
Future revisions will add the above mentioned functionality.
6
Below is a function written in ColdFusion MX that will return an array containing all matches found when running a regex against a particular string. Each array item is a structure with the match, the starting character position, the ending character position, and an array of any
sub-pattern captures.
sub-pattern captures.
15
Generates a tree view within a dropdown select box.
12
Generates select boxes, text boxes, check boxes and radio buttons. Via a handful of functions.
12
Similar to Perl's CGI::escapeHTML(), though (because we can!) this adds it as a method to all String objects.
13
If you're an IE user you may have noticed that when you hover on a medium to large sized image, a toolbar appears in the corner of the image. It's basically useless as it accomplishes nothing that can't be done with a right-click.
Luckily, Microsoft has included a way for webmasters to disable this function.
Luckily, Microsoft has included a way for webmasters to disable this function.
14
Here's a basic function for debugging any kind of PHP variable. It allows for "invisible" or "visible" output--that is output in HTML comments or within visible HTML tags. It also supports customizable "containers" which lets you easily edit the look of the visible and invisible blocks. Examples in code below.









