~Dave the disruptor~ 

----------------------------------------
From: "Jared Rypka-Hauer - CMG, LLC" <[EMAIL PROTECTED]>
Sent: Monday, May 16, 2005 4:33 AM
To: CF-Talk <[email protected]>
Subject: Re: transparent png for ie hack 

Dave,

If you had a cfm template that had the following code:

#image#

And then you had another CFM template in the same directory that had the 
following code:

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  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.filecontent#

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:

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"
to get to the same file... it's up to you how you implement it.

Laterz,
J

On 5/14/05, dave  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.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206752
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to