ColdFusion Tutorial
How to make day-to-day maintenance more trivial.
When you need to test your code locally on localhost or IP 127.0.0.1., it's useful to check if you running on the server or your localhost.
To do this, specify some global variables in the application. The global variables changes depends if you're running on localhost or the server.
Example:
|
<!--- Application name. ---> <!--- Application running on server. ---> |
How to use this in your code:
<a href="<cfoutput>#request.application.webroot#</cfoutput>/index.cfm/fuseaction/about.information/information.cfm" onFocus="if(this.blur)this.blur()"><img src="<cfoutput>#request.images.root#</cfoutput>/information_button.gif" alt="Information about ApplayIT, services and products." width="30" height="23" border="0"></a>
ColdFusion Tutorial test
How to make day-to-day maintenance more trivial.
No test is available or implemented for this ColdFusion Tutorial.
User Comments: 2
The use of &?/?
The use of "& &" is adding words to a string.
Example:
This is my string&?/?
Will add a / at the end of the string.
This is my string/
Question?
What is the use of "& &" in this line?
<cfset request.ccs.root = "http://"CGI.HTTP_HOST#&"/"application_name#&"/common/css/">
