Other that the typing issue, you can't always be curtain that on all web servers of different manufacturers and platforms will have the variable scope cgi constructed in the same way, in most cases Apache and ISS the two most popular are the same, but as I discovered this week Domino is very very different so I'd say option one is the most likely to work in all occasions.
 
GC
----- Original Message -----
Sent: Friday, March 26, 2004 10:23 AM
Subject: [cfaussie] quick question: which is better? calculating CFM template names:

Is there any noticable difference between

 

<cfset CurrentPage=GetFileFromPath(GetTemplatePath())>

 

And

 

<cfset CurrentPage=CGI.SCRIPT_NAME>

 

Thanx

barry.b

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to