<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Bobbi Rawlings&#039; Blog</title>
	<atom:link href="http://borawlings.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://borawlings.wordpress.com</link>
	<description>My musings on Coldfusion, databases and other junk!</description>
	<lastBuildDate>Wed, 02 Sep 2009 18:32:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='borawlings.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Bobbi Rawlings&#039; Blog</title>
		<link>http://borawlings.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://borawlings.wordpress.com/osd.xml" title="Bobbi Rawlings&#039; Blog" />
	<atom:link rel='hub' href='http://borawlings.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Alert : Confirmation</title>
		<link>http://borawlings.wordpress.com/2009/09/02/alert-confirmation/</link>
		<comments>http://borawlings.wordpress.com/2009/09/02/alert-confirmation/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 18:32:07 +0000</pubDate>
		<dc:creator>borawlings</dc:creator>
				<category><![CDATA[Alerts]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://borawlings.wordpress.com/?p=60</guid>
		<description><![CDATA[This script goes before the body tag: &#60;script type=&#8221;text/javascript&#8221;&#62; &#60;!&#8212; function confirmation() {  var answer = confirm(&#8220;Run this sucker!&#8221;)  if (answer != 0){     alert(&#8220;This sucker is running!&#8221;)     document.myformname.submit(); } else {            alert(&#8220;This sucker canceled!&#8221;)           } } //&#8211;&#62; &#60;/script&#62; This script is launched when the user clicks the &#8220;Submit&#8221; button on a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=60&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This script goes before the body tag:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;</p>
<p>&lt;!&#8212;</p>
<p>function confirmation() {<br />
 var answer = confirm(&#8220;Run this sucker!&#8221;)<br />
 if (answer != 0){<br />
    alert(&#8220;This sucker is running!&#8221;)<br />
    document.myformname.submit();<br />
}<br />
else {<br />
           alert(&#8220;This sucker canceled!&#8221;)</p>
<p>          }<br />
}<br />
//&#8211;&gt;<br />
&lt;/script&gt;</p>
<p>This script is launched when the user clicks the &#8220;Submit&#8221; button on a form.  The user is presented with a pop-up box.  If &#8220;yes&#8221; in responst to &#8220;Run this Sucker!&#8221;, then the form is submitted by the document.reports.submit() function, where &#8220;reports&#8221; is the name of the form.  The statement is what kicks off the action &#8220;myquery.cfm&#8221;.  Otherwise, nothing happens.</p>
<p>Here&#8217;s what the cfform tag looks like:<br />
&lt;cfform name=&#8221;myformname&#8221; action=&#8221;myquery.cfm&#8221; method=&#8221;post&#8221; id=&#8221;myForm&#8221; onsubmit=&#8221;confirmation();return false;&#8221;&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/borawlings.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/borawlings.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/borawlings.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/borawlings.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/borawlings.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/borawlings.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/borawlings.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/borawlings.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/borawlings.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/borawlings.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/borawlings.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/borawlings.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/borawlings.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/borawlings.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=60&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://borawlings.wordpress.com/2009/09/02/alert-confirmation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20f3963226c0db64cf1c0aa92dee0b9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">borawlings</media:title>
		</media:content>
	</item>
		<item>
		<title>Finding a file path</title>
		<link>http://borawlings.wordpress.com/2009/09/02/finding-a-file-path/</link>
		<comments>http://borawlings.wordpress.com/2009/09/02/finding-a-file-path/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 18:25:41 +0000</pubDate>
		<dc:creator>borawlings</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://borawlings.wordpress.com/?p=58</guid>
		<description><![CDATA[I found the easiest way to check a file path is to use: &#60;cfoutput&#62;#GetTemplatePath()#&#60;/cfoutput&#62; This really helpful for upload utilities because the above command will return the exact path to the upload directory.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=58&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I found the easiest way to check a file path is to use:</p>
<p>&lt;cfoutput&gt;#GetTemplatePath()#&lt;/cfoutput&gt;</p>
<p>This really helpful for upload utilities because the above command will return the exact path to the upload directory.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/borawlings.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/borawlings.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/borawlings.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/borawlings.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/borawlings.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/borawlings.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/borawlings.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/borawlings.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/borawlings.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/borawlings.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/borawlings.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/borawlings.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/borawlings.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/borawlings.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=58&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://borawlings.wordpress.com/2009/09/02/finding-a-file-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20f3963226c0db64cf1c0aa92dee0b9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">borawlings</media:title>
		</media:content>
	</item>
		<item>
		<title>Reusing code with CFINCLUDE</title>
		<link>http://borawlings.wordpress.com/2009/09/02/reusing-code-with-cfinclude/</link>
		<comments>http://borawlings.wordpress.com/2009/09/02/reusing-code-with-cfinclude/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 18:19:43 +0000</pubDate>
		<dc:creator>borawlings</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://borawlings.wordpress.com/?p=55</guid>
		<description><![CDATA[Reusing code with CFINCLUDE  The CFINCLUDE function is a great way to share code throughout your application.  I usually use this code to share buttons throughout forms within applications.  That way if I need to make a change to a button’s link, I only have to change the code in one place and the change [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=55&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">Reusing code with CFINCLUDE</span></strong></p>
<p><strong> </strong>The CFINCLUDE function is a great way to share code throughout your application.  I usually use this code to share buttons throughout forms within applications.  That way if I need to make a change to a button’s link, I only have to change the code in one place and the change is shared throughout my application wherever the buttons are needed.<strong> </strong></p>
<p><strong> </strong>Here’s the code for BTNS_ADMIN.html. </p>
<p><strong>&lt;input value=&#8221;Sponsored Progs&#8221;/&gt;</strong></p>
<p><strong>&lt;input value=&#8221;William and Mary&#8221;/&gt;</strong></p>
<p><strong>&lt;input value=&#8221;Places to Stay&#8221;/&gt;</strong></p>
<p><strong> </strong>When this code runs, three buttons are displayed.  Each button has an “onclick” attribute set to a particular location.</p>
<p> Now, CFINCLUDE is used to call BTNS_ADMIN.html on the form</p>
<p>FRM_Show_buttons.cfm:</p>
<p> <strong>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;</strong></p>
<p><strong>&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;</strong></p>
<p><strong>&lt;head&gt;</strong></p>
<p><strong>&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=iso-8859-1&#8243; /&gt;</strong></p>
<p><strong>&lt;title&gt;Untitled Document&lt;/title&gt;</strong></p>
<p><strong>&lt;/head&gt;</strong></p>
<p><strong> </strong><strong>&lt;body&gt;</strong></p>
<p><strong>&lt;cfinclude template=&#8221;BTNS_Admin.html&#8221;&gt;</strong></p>
<p><strong>&lt;/body&gt;</strong></p>
<p><strong>&lt;/html&gt;</strong></p>
<p> And that’s it!!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/borawlings.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/borawlings.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/borawlings.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/borawlings.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/borawlings.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/borawlings.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/borawlings.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/borawlings.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/borawlings.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/borawlings.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/borawlings.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/borawlings.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/borawlings.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/borawlings.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=55&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://borawlings.wordpress.com/2009/09/02/reusing-code-with-cfinclude/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20f3963226c0db64cf1c0aa92dee0b9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">borawlings</media:title>
		</media:content>
	</item>
		<item>
		<title>Prevent sql injection attacks in Coldfusion</title>
		<link>http://borawlings.wordpress.com/2009/08/31/prevent-sql-injection-attacks-in-coldfusion/</link>
		<comments>http://borawlings.wordpress.com/2009/08/31/prevent-sql-injection-attacks-in-coldfusion/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 16:07:02 +0000</pubDate>
		<dc:creator>borawlings</dc:creator>
				<category><![CDATA[SQL Injection Attacks]]></category>

		<guid isPermaLink="false">http://borawlings.wordpress.com/?p=53</guid>
		<description><![CDATA[Ben Forta, my guru, has a fantastic article on the prevention of SQL Injection attacks.  In case you don&#8217;t know what what a SQL Injection attack is, it is a very insidious code injection technique that allows someone to embed sql statements within your code.  I like to check my parameters before passing them to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=53&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ben Forta, my guru, has a fantastic article on the <a title="SQL Injection Attacks" href="http://coldfusion.sys-con.com/node/165921" target="_blank">prevention of SQL Injection </a>attacks.  In case you don&#8217;t know what what a SQL Injection attack is, it is a very insidious code injection technique that allows someone to embed sql statements within your code. </p>
<p>I like to check my parameters before passing them to the database as suggested by Ben.  Here&#8217;s an example that validates a paramater being passed by a URL:</p>
<div><span style="color:#800000;">&lt;cfquery &#8230;&gt;</span><br />
SELECT *<br />
FROM Customers<br />
WHERE CustID=<span style="color:#800000;">&lt;cfqueryparam value=<span style="color:#0000ff;">&#8220;#URL.CustID#&#8221;</span> cfsqltype=<span style="color:#0000ff;">&#8220;CF_SQL_INTEGER&#8221;</span>&gt;</span><br />
<span style="color:#800000;">&lt;/cfquery&gt;</span></div>
<div><span style="color:#800000;"> </span><span style="color:#800000;"> </span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/borawlings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/borawlings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/borawlings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/borawlings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/borawlings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/borawlings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/borawlings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/borawlings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/borawlings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/borawlings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/borawlings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/borawlings.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/borawlings.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/borawlings.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=53&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://borawlings.wordpress.com/2009/08/31/prevent-sql-injection-attacks-in-coldfusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20f3963226c0db64cf1c0aa92dee0b9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">borawlings</media:title>
		</media:content>
	</item>
		<item>
		<title>Prevent Session Hijacking in ColdFusion</title>
		<link>http://borawlings.wordpress.com/2009/08/31/prevent-session-hijacking-in-coldfusion/</link>
		<comments>http://borawlings.wordpress.com/2009/08/31/prevent-session-hijacking-in-coldfusion/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 15:52:36 +0000</pubDate>
		<dc:creator>borawlings</dc:creator>
				<category><![CDATA[Session Hijacking - CF]]></category>

		<guid isPermaLink="false">http://borawlings.wordpress.com/?p=50</guid>
		<description><![CDATA[Session Hijacking is the exploitation of a valid computer session to gain unauthorized access to information or services in a computer system.  This is a vulnerability for all web applications, not just those written in CF. They can access thisinformation: Direct access to the user’s computer to access their cookies. Packet sniffing to intercept the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=50&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Session Hijacking is the exploitation of a valid computer session to gain unauthorized access to information or services in a computer system.  This is a vulnerability for all web applications, not just those written in CF.</p>
<p>They can access thisinformation:</p>
<ul>
<li>Direct access to the user’s computer to access their cookies.</li>
<li>Packet sniffing to intercept the cookie being passed back and forth from client to server.
<ul>
<li>SSL on login pages can prevent sniffing the cookie at that time, but other pages thata are not encrypted will stillsend this data.</li>
</ul>
</li>
<li>Directly from a user who may have posted/sent a URL with the session identifier in the URL.</li>
<li>Cross Site Scripting attack.</li>
</ul>
<p> To prevent , log on to the Coldfusion Administrator, then:</p>
<p>Check the box beside “Use J2EE session variables”.  By default this is not checked.</p>
<p>Quickest and easiest way to prevent session hijacking is to enable J2EE session variables in the Coldfusion Administrator.</p>
<ul>
<li>Enabling J2EE session variables limits the effectiveness session hijacking.</li>
<li>It uses the variable jessionid rather than DVID and CFTOKEN.</li>
<li>J2EE Sessions have other advantages as well:
<ul>
<li>You can share session variables between ColdFusion and JSP pages.</li>
<li>The session ends for the user when all browser windows are closed.  However, the session remains open on the server.</li>
<li>The session is serializable – used in clusters.</li>
</ul>
</li>
</ul>
<p>Cross Site Scripting : to prevent, log on to the ColdFusion Administrator, under “Server Settings” click “Settings”.  Then check “Enable Global Script Protection”.</p>
<p> Use error handling.  Sites should never show ColdFusion error page.</p>
<ul>
<li>Errors can be handled using a variety of methods (usually more than one at a time)</li>
</ul>
<ul>
<li>Try/catch blocks</li>
<li>onError method of Applciation.cfc</li>
<li>Specifying a site wide error handler in ColdFusion Administrator</li>
<li>Specifying a missing template handler in ColdFusion Administrator</li>
</ul>
<p> Turn off robust exception information.</p>
<ul>
<li>If an error happens to get through, you do not want the information displayed with robust exception information falling into the hands of a hacker (or any user for that matter)</li>
<li>A hacker can gain information about:
<ul>
<li>Server operating system</li>
<li>File structure</li>
<li>Database structure</li>
</ul>
</li>
</ul>
<p>Remove unneeded permissions from datasources.</p>
<ul>
<li>When deploying to production environments, remove any unnecessary permissions in the CF Administrator, from your datasources, such as:</li>
<li>Create</li>
<li>Drop</li>
<li>Alter</li>
<li>Grant</li>
<li>Revoke</li>
</ul>
<p>Having these permissions might be O.K. for development, but probably not needed for production.</p>
<p> Create a database user specifically for ColdFusion.</p>
<ul>
<li>You should never use the ‘sa’ or ‘root’ user for database access in production environments</li>
<li>Give the user the lowest level of permissions needed to run your application.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/borawlings.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/borawlings.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/borawlings.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/borawlings.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/borawlings.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/borawlings.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/borawlings.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/borawlings.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/borawlings.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/borawlings.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/borawlings.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/borawlings.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/borawlings.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/borawlings.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=50&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://borawlings.wordpress.com/2009/08/31/prevent-session-hijacking-in-coldfusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20f3963226c0db64cf1c0aa92dee0b9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">borawlings</media:title>
		</media:content>
	</item>
		<item>
		<title>Php: How to find out what version your server is running</title>
		<link>http://borawlings.wordpress.com/2009/08/28/php-how-to-find-out-what-version-your-server-is-running/</link>
		<comments>http://borawlings.wordpress.com/2009/08/28/php-how-to-find-out-what-version-your-server-is-running/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 18:58:09 +0000</pubDate>
		<dc:creator>borawlings</dc:creator>
				<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://borawlings.wordpress.com/?p=46</guid>
		<description><![CDATA[Decided to toy around with the idea of using Php to send email messages but am having trouble.  The &#8220;mail&#8221; fundtion is not recognized. So figured I needed to find out what version of Php is running on my server.  You might find it useful too and it is really simple: &#60;?php phpinfo(); ?&#62;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=46&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Decided to toy around with the idea of using Php to send email messages but am having trouble.  The &#8220;mail&#8221; fundtion is not recognized. So figured I needed to find out what version of Php is running on my server.  You might find it useful too and it is really simple:</p>
<p>&lt;?php phpinfo(); ?&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/borawlings.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/borawlings.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/borawlings.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/borawlings.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/borawlings.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/borawlings.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/borawlings.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/borawlings.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/borawlings.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/borawlings.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/borawlings.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/borawlings.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/borawlings.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/borawlings.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=46&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://borawlings.wordpress.com/2009/08/28/php-how-to-find-out-what-version-your-server-is-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20f3963226c0db64cf1c0aa92dee0b9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">borawlings</media:title>
		</media:content>
	</item>
		<item>
		<title>William and Mary/VIMS re.web project</title>
		<link>http://borawlings.wordpress.com/2009/08/21/william-and-maryvims-re-web-project/</link>
		<comments>http://borawlings.wordpress.com/2009/08/21/william-and-maryvims-re-web-project/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 13:05:38 +0000</pubDate>
		<dc:creator>borawlings</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://borawlings.wordpress.com/?p=34</guid>
		<description><![CDATA[In 2007, the College of William and Mary created a committee charged with assessing and revamping the web presence of the college including the Virginia Institute of Marine Science.   After a comprehensive search, mStoner was selected as the architecture and design consultant for the project. A web content management system (CMS) called Cascade is used to facilitate the migation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=34&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In 2007, the College of William and Mary created a <a title="re.web" href="http://web.wm.edu/reweb/rfp_process.php">committee</a> charged with assessing and revamping the web presence of the college including the Virginia Institute of Marine Science.   After a comprehensive search, <a title="mStoner" href="http://www.mstoner.com/">mStoner</a> was selected as the architecture and design consultant for the project.</p>
<p>A web content management system (CMS) called <a title="Cascade" href="http://www.wm.edu/offices/it/help/web/websites/cascade/index.php">Cascade</a> is used to facilitate the migation of the schools old web pages to a new format.</p>
<p>For help on &#8220;How to do stuff in Cascade&#8221; visit <a title="Cascade Help" href="http://www.wm.edu/offices/it/help/web/websites/cascade/howto/index.php">Cascade Help</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/borawlings.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/borawlings.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/borawlings.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/borawlings.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/borawlings.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/borawlings.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/borawlings.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/borawlings.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/borawlings.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/borawlings.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/borawlings.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/borawlings.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/borawlings.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/borawlings.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=34&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://borawlings.wordpress.com/2009/08/21/william-and-maryvims-re-web-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20f3963226c0db64cf1c0aa92dee0b9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">borawlings</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamically populate select boxes</title>
		<link>http://borawlings.wordpress.com/2009/08/21/dynamically-populate-select-boxes/</link>
		<comments>http://borawlings.wordpress.com/2009/08/21/dynamically-populate-select-boxes/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 12:04:25 +0000</pubDate>
		<dc:creator>borawlings</dc:creator>
				<category><![CDATA[Dynamic Forms]]></category>

		<guid isPermaLink="false">http://borawlings.wordpress.com/?p=28</guid>
		<description><![CDATA[Don&#8217;t hard code values into select boxes!  Learn how to populate them using database values and you &#8216;ll never have to hard code again!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=28&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t hard code values into select boxes!  <a href="http://borawlings.wordpress.com/dynamic-select-boxes/">Learn how to populate them using database values </a>and you &#8216;ll never have to hard code again!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/borawlings.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/borawlings.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/borawlings.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/borawlings.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/borawlings.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/borawlings.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/borawlings.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/borawlings.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/borawlings.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/borawlings.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/borawlings.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/borawlings.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/borawlings.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/borawlings.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=28&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://borawlings.wordpress.com/2009/08/21/dynamically-populate-select-boxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20f3963226c0db64cf1c0aa92dee0b9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">borawlings</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting started!  What do I need?</title>
		<link>http://borawlings.wordpress.com/2009/08/20/getting-started-what-do-i-need/</link>
		<comments>http://borawlings.wordpress.com/2009/08/20/getting-started-what-do-i-need/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 16:52:43 +0000</pubDate>
		<dc:creator>borawlings</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://borawlings.wordpress.com/?p=21</guid>
		<description><![CDATA[What I&#8217;m using: DreamWeaver CS3 Coldfusion 8 (Developer) Depending on the database, I&#8217;m also using: MS Access SQL Server 2008 (Express Edition with Tools) MySQL SQL Server 2008, Express Edition and MySQL are available free of charge.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=21&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What I&#8217;m using:</p>
<ul>
<li>DreamWeaver CS3</li>
<li>Coldfusion 8 (Developer)</li>
</ul>
<p>Depending on the database, I&#8217;m also using:</p>
<ul>
<li>MS Access</li>
<li><a title="SQL Server 2008" href="http://www.microsoft.com/sqlserver/2008/en/us/express.aspx" target="_blank">SQL Server 2008 (Express Edition with Tools)</a></li>
<li><a title="MySQL" href="http://www.mysql.com/" target="_blank">MySQL</a></li>
</ul>
<p>SQL Server 2008, Express Edition and MySQL are available free of charge.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/borawlings.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/borawlings.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/borawlings.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/borawlings.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/borawlings.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/borawlings.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/borawlings.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/borawlings.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/borawlings.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/borawlings.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/borawlings.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/borawlings.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/borawlings.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/borawlings.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=21&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://borawlings.wordpress.com/2009/08/20/getting-started-what-do-i-need/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20f3963226c0db64cf1c0aa92dee0b9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">borawlings</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamic Check Boxes</title>
		<link>http://borawlings.wordpress.com/2009/08/20/dynamic-check-boxes/</link>
		<comments>http://borawlings.wordpress.com/2009/08/20/dynamic-check-boxes/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 16:09:52 +0000</pubDate>
		<dc:creator>borawlings</dc:creator>
				<category><![CDATA[Dynamic Checkboxes]]></category>

		<guid isPermaLink="false">http://borawlings.wordpress.com/?p=10</guid>
		<description><![CDATA[Dynamically create check boxes using database values.  This example pulls a list of people from the database, and allows them to be selected for delete by clicking in the checkbox next to the desired name or names.  It is important to note that the_id from tbl_people is a primary key: First, the query: &#60;cfquery name=&#8221;get_email&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=10&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Dynamically create check boxes using database values.  This example pulls a list of people from the database, and allows them to be selected for delete by clicking in the checkbox next to the desired name or names.  It is important to note that the_id from tbl_people is a primary key:</p>
<p>First, the query:</p>
<p>&lt;cfquery name=&#8221;get_email&#8221; datasource=&#8221;my_people&#8221;&gt;</p>
<p>SELECT the_id, the_name, pi_email<br />
FROM tbl_people</p>
<p>&lt;/cfquery&gt;</p>
<p>Now, output the list:</p>
<p>&lt;cfoutput query=&#8221;get_email&#8221;&gt;<br />
#the_name#<br />
&lt;cfinput type=&#8221;checkbox&#8221; name=&#8221;chk_for_removal&#8221; value=&#8221;#the_id#&#8221;&gt;&lt;/br&gt;<br />
&lt;/cfoutput&gt;</p>
<p>This is what the output looks like:</p>
<p>John Doe ⁭<br />
Jane Brown ⁭ <br />
Steve Greene ⁭</p>
<p>The checkboxes beside each name have the value of the person&#8217;s unique identifier, which is the_id.  One or more of these values (depending on how many items are checked) will be passed to the &#8220;action&#8221; form where the record will be deleted from the database.</p>
<p>In this example, the action form is called &#8220;delete_people.cfm&#8221;:</p>
<p>&lt;!&#8212; See if the field chk_for_removal exists.  It only exists if a check box is checked &#8212;&gt;<br />
&lt;cfif IsDefined(&#8220;form.chk_for_removal&#8221;)&gt;<br />
&lt;cfquery datasource=&#8221;my_people&#8221;&gt;<br />
delete * from tbl_people<br />
where the_id in (#form.chk_for_removal#)<br />
&lt;/cfquery&gt;<br />
&lt;/cfif&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/borawlings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/borawlings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/borawlings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/borawlings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/borawlings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/borawlings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/borawlings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/borawlings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/borawlings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/borawlings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/borawlings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/borawlings.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/borawlings.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/borawlings.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=borawlings.wordpress.com&amp;blog=9092817&amp;post=10&amp;subd=borawlings&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://borawlings.wordpress.com/2009/08/20/dynamic-check-boxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20f3963226c0db64cf1c0aa92dee0b9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">borawlings</media:title>
		</media:content>
	</item>
	</channel>
</rss>
