Dave, If you had a cfm template that had the following code:
<cffile action="read" file="#url.filename#" variable="image" /> <cfcontent type="image/jpeg" /><cfoutput>#image#</cfoutput> And then you had another CFM template in the same directory that had the following code: <img src="img.cfm?filename=D:\LocalFiles\My%20Pictures\DSC00007.JPG" /> You'd see the image (this happens to be a picture of my friends 26-pound housecat... big, big, big cat) in your browser exactly as you'd see it if you called the image directly. Your browser uses an HTTP GET to nab the image, so call to the template img.cfm is an HTTP GET and the CF engine processes it and sends the image back to the calling template (the one with the img tag in it). The PHP script would do the same thing... so you could use <img src="img.php?image=some path" /> to get the image file directly from PHP. If you wanted to use cfhttp to get the image, then your code in img.cfm would look like this: <cfhttp url="http://whatever.url.com/someFile.php?image=imagepath" /> <cfcontent type="image/jpeg" /><cfoutput>#cfhttp.filecontent#</cfoutput> In this case, since PHP and CF are running on the same box, you could only use img.php directly if you used a relative path in your image tag: <img src="/phpstuff/img.php"> just remember that src can be a URL... http://yadda.server.whatever/someImage.jpg (or cfm or php) and your browser will fetch the content for the image from that URL... so it even resolves URL variables and so on. Or you could use cfhttp and url="http:127.0.0.1/yadda/img.php<http://127.0.0.1/yadda/img.php>" to get to the same file... it's up to you how you implement it. Laterz, J On 5/14/05, dave <[EMAIL PROTECTED]> wrote: > > cant you call a php page through cfhttp? > I seam to recall being able to run a php page but this script calls for it > once at beginning and again at end. > > None of the others are working probably because I am using 32 bit pngs and > not 24. > Leave it up to m$ to continue to screw simple things up so damn bad. > > ~Dave the disruptor~ > -- --------------- ------------------------------------- Buy SQLSurveyor! http://www.web-relevant.com/sqlsurveyor Never make your developers open Enterprise Manager again. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206749 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

