<!--- Grab file content --->
<cfhttp url="
method="GET"
resolveurl="true">
</cfhttp>
<!--- Store the file content into a more intuitive variable name set the file info to pageData --->
<cfset pageData = cfhttp.fileContent>
<!--- Parse data to get absolute image file name, here I am finding the part of the page I want to take, so I take all the information between begin movie coming soon boxarts and end movie coming soon boxarts and set it to comingsoonText, then I write it to a cfm file then I can include it were ever I want. --->
<cfset start = Find("<!-- begin movie coming soon boxarts-->",pageData)>
<cfset start = start + Len("<!-- begin movie coming soon boxarts-->")>
<cfset end = Find("<!-- end movie coming soon boxarts-->",pageData)>
<cfset comingsoonText = Mid(pageData, start, end - start)>
<cfoutput>
<br>
<cffile action="write" output="#comingsoonText#" file="#expandpath("comingsoonText.cfm")#">
</cfoutput>
Works Great
check it out
I pull in all the movie pictures and titles that are coming soon.