Adobe Dreamweaver Forums



Last 10 THreads :         Format numbers with leading zeros (Last Post : NedWebs - Replies : 1 - Views : 2 )           »          Event listener (Last Post : NedWebs - Replies : 3 - Views : 4 )           »          mouseover slide menu! ... help! (Last Post : openspark - Replies : 1 - Views : 2 )           »          Trouble with SQL Query Tool on Leopard (Last Post : Daverms - Replies : 8 - Views : 9 )           »          Re: Cannot paste text from MS Publisher into Dreamweaver (Last Post : Tim G - Replies : 8 - Views : 9 )           »          action script for button (Last Post : NedWebs - Replies : 5 - Views : 10 )           »          403 error from my domain? (Last Post : Ken Ford - *ACE* - Replies : 1 - Views : 4 )           »          Adding database RDS Login Dreamweaver 8 Coldfusion 8 (Last Post : ClubbyJMC2008 - Replies : 4 - Views : 5 )           »          Looping from end of clip to middle of clip (Last Post : Gibbah - Replies : 1 - Views : 5 )           »          Help need div to expand to height of browser (Last Post : Tim G - Replies : 1 - Views : 2 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Cold Fusion
 
Tags:



Reply
  #1 (permalink)  
Old 10-01-2008, 04:00 AM
mgelber
 
Posts: n/a
Diggs:
Default How to determine if CF is running on localhost?

Sorry if this is a dumb question.

I'm trying to run different code when I test my website locally versus run it
on the production server. Specifically, the production server puts full URLs
into the web pages (www.fubar.com/page1.cfm) versus my testing server which I
like to run as a relative URL (../page1.cfm).

I do the full URLs on the production server to have complete control over the
secure/nonsecure elements, but I don't have a secure cert on localhost so I
need all the elements to be non-SSL.

Right now I just have a boolean flag in application.cfc I manually change so
the code knows where it is being run, but sometimes I forget to change it when
I sync. Is there a function that I can use to set the flag for me? I found
IsLocalHost() but I would need to pass it an IP.

Thank you for any help you might be able to offer.



Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:34 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk