Clean Output





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

1
Date Submitted Thu. Aug. 28th, 2008 9:33 AM
Revision 1
Scripter Fordiman
Tags buffering | errors | Output | PHP | template
Comments 0 comments
Best use of ob_, custom error handling, and variable variales evar: simple templating.

_parse($filename[,$locals])
includes $filename and renders its output to the return value. $locals, if used, will add a set of variables to the included context.

Parse($template[,$locals])
Same as above, but allows you to define a base template folder and omit the .php - just for cleaner code.

t($template[,$obj])
...
t()
Same as Parse, but any output between the opening call and the closing call (no arguments) will be buffered intot he $content variable of the template.

Play around with t(..) to find out more; I don't feel like documenting it.
5
Date Submitted Mon. Oct. 9th, 2006 8:44 AM
Revision 1
Helper RobHarrigan
Tags "form input" | "SQL Injection" | Clean | Prevent | XSS
Comments 1 comments
Sanitize form input using CGI.pm to prevent XXS & SQL injections:
6
Date Submitted Thu. Aug. 31st, 2006 6:16 PM
Revision 1
Helper psykoprogrammer
Tags ColdFusion | RegExp
Comments 0 comments
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.
6
Date Submitted Sun. Aug. 27th, 2006 11:03 AM
Revision 1
Beginner cf_ernie
Tags cfhttp | ColdFusion
Comments 0 comments
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"
4
Date Submitted Sat. Aug. 26th, 2006 10:17 PM
Revision 1
Beginner cf_ernie
Tags "SQL Server" | ColdFusion | SQL
Comments 1 comments
This is a little script I wrote that copies your database through a cfquery statement

Enjoy,
Ernie
ernest.breau@gmail.com
2
Date Submitted Tue. Mar. 28th, 2006 11:33 AM
Revision 1
Helper gbarendt
Tags ColdFusion | MX | zip
Comments 2 comments
Unzip a file in CFMX
9
Date Submitted Thu. Mar. 16th, 2006 6:44 PM
Revision 1
Helper Snyke
Tags debugging | Java | log4j | logging | Output
Comments 0 comments
Log4J is a really nice Library that aims to facilitate outputting debugging information, but also relevant data, in Java applications. It is highly configurable, using both Categories and Class-Based rules, so that developers can narrow down the problems very well when debugging applications.
5
Date Submitted Mon. Oct. 31st, 2005 10:38 PM
Revision 1
Coder mattrmiller
Tags ColdFusion | HTML | Strip
Comments 1 comments
Strip HTML
6
Date Submitted Sun. Oct. 30th, 2005 9:12 PM
Revision 1
Coder mattrmiller
Tags "Email Address" | ColdFusion | Validate
Comments 0 comments
Validate Email Address
4
Date Submitted Mon. Oct. 10th, 2005 12:23 PM
Revision 1
Beginner davidjmedlock
Tags Alternating | ColdFusion | Row
Comments 1 comments
Quick and Easy Alternating Row Colors