My beloved internet provider is switching to DHCP
based IP addresses, so I needed a quick way to add my
IP address to the debugging addresses...and I was too
lazy to log into the administrator, so I wrote this
quick code. Simple as it is, I thought others might
be able to use it. It basically just adds your IP
Address to the registry and then does a refresh of CF
using the undocumented function
"CFUSION_SETTINGS_REFRESH()". Use it at your own
risk.
----------------CUT HERE--------------------------
<font face="verdana">
<CFOUTPUT>
Adding your IP Address "#CGI.Remote_ADDR#" for
debugging.
</CFOUTPUT>
</font>
<!--- Update the registry with the current IP: --->
<CFREGISTRY ACTION = "set"
ENTRY="#CGI.Remote_ADDR#"
TYPE="String" BRANCH=
"HKEY_LOCAL_MACHINE\Software\Allaire\ColdFusion\CurrentVersion\Debug\DebugIPList">
<!--- Use the undocumented CF Server refresh --->
<CFSET CFUSION_SETTINGS_REFRESH() >
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists