Re: pass by reference

From: Date: Fri, 23 Jan 2004 04:39:04 +0000
Subject: Re: pass by reference
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175490@lists.php.net to get a copy of this message
On Friday, January 23, 2004, at 03:17 PM, Kevin Waterson wrote:
The implication is that the 'middle layer' (PHP) would slow things down to an unusable state. so, when I extract an image from the database and echo it to a webpage, is there any copying done? or is it a direct stream to the webpage?
I don't think you ever extract image data direct from a database and echo it to a web (HTML) page do you? Typically you call a php script which outputs the correct mimetype for the image, and passes the image data through to the user agent. In other words, you HTML source looks like this: <img src='images.php?id=45'> NOT <img src='{RAW BINARY DATA HERE}'> I don't know if this helps or not :) Justin French

« previous php.general (#175490) next »