<cfset APPLICATION.siteURL =
replace(GetDirectoryFromPath("http://"&cgi.server_name&
cgi.path_info),"\","")>I see this used alot to determine the site URl. However, it doesn't seem to work all the time. I notice that if you enter anywhere but the main page on the first request, then this variable will be set to that page. Is there a better way to determine the site_url no matter what page in the app you hit first? -- David Mineer Jr --------------------- The critical ingredient is getting off your butt and doing something. It's as simple as that. A lot of people have ideas, but there are few who decide to do something about them now. Not tomorrow. Not next week. But today. The true entrepreneur is a doer. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
