Ask a Question related to Macromedia ColdFusion, Design and Development.
-
mix-tape developer #1
variable contents problem
Does sombody knows how can I do to do this :
<cfset var = "<cfinclude template="file"> <cfoutput> Hi </cfoutput> ">
In other words to store cfml code and instructions into a cf variable.
Thx
S@id+
mix-tape developer Guest
-
Execute contents of variable as a command?
<? $command = "echo 'boo " . rand() . "<br>';"; for ($i = 0; $i <= 50; $i++) { //execute $command } ?> -
Is there a way to print out the contents of a variable in human readable format?
Is it possible to print out the contents of a variable in a human readable format? For instance like PHP's print_r() function? Thanks in... -
Is there a way to print out the contents of a variable in hum an readable format?
Definitely check out Data::Dumper; -----Original Message----- From: Dan Anderson Sent: Wednesday, October 01, 2003 9:55 PM To: Tim Johnson... -
Is there a way to print out the contents of a variable in hum an readable format?
Could you give an example of what you mean? I don't use PHP, but I can think of about three functions that MIGHT be what you're looking for. ... -
Passing contents of a flat file to an internal variable
I want to do something like this inside a sproc: DECLARE @internalText VARCHAR(8000) SET @internalText="c:\myTestXML.XML" QUESTION: ... -
mix-tape developer #2
variable contents problem
Does sombody knows how can I do to do this :
<cfset var = "<cfinclude template="file"> <cfoutput> Hi </cfoutput> ">
In other words to store cfml code and instructions into a cf variable.
Thx
S@id+
mix-tape developer Guest
-
Stressed_Simon #3
Re: variable contents problem
<cfsavecontent variable="var">
<cfinclude template="file"> <cfoutput> Hi </cfoutput>
</cfsavecontent>
Stressed_Simon Guest
-
dave_jf #4
Re: variable contents problem
Here is how you would do this:
<CFSAVECONTENT VARIABLE="theVar">
<CFINCLUDE TEMPLATE="mycfmpage.cfm">
<CFOUTPUT>Hi</CFOUTPUT>
</CFSAVECONTENT>
HTH
--Dave
dave_jf Guest
-
mix-tape developer #5
Re: variable contents problem
thank you Stressed_Simon and dave_jf
mix-tape developer Guest
-
simonr #6
Re: variable contents problem
Use CFSAVECONTENT:
<cfoutput>
<cfsavecontent variable="myVar">
<cfinclude template="some_file.cfm">
Hello, the time is #TimeFormat(Now(), 'HH:mm:ss')#
<!--- as much CF code as you like, really --->
</cfsavecontent>
#myVar#
</cfoutput>
simonr Guest
-
mix-tape developer #7
Re: variable contents problem
Ok thank you so mutch simonr
mix-tape developer Guest



Reply With Quote

