It is a couple of seconds slow.
Treating the file as an image means that the rest of the page can still load
while it is doing the reverse DNS lookup and executing the script.
Anyway I have got the answer now
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
"Richard Lynch" <[EMAIL PROTECTED]>
>When the nessicary include file is included it does a reverse-DNS lookup to
>find the remote host's DNS name. The problem with this is that is seems
>slow(at least on my test server with a DSL connection).
How slow?
There's, like, a couple seconds slow, which is just how slow reverse-DNS can
be
instead of
$fn=fopen($filename,"rb");
while(!feof($fn)) {
echo fread($fn, 4096);
}
use
readfile($filename);
BB wrote:
>$filename = "your/file.gif";
>header("Content-Type: image/gif");
>header("Content-length:".filesize($filename));
>$fn=fopen($filename,"rb");
>while(!feof($fn)) {
> echo frea
$filename = "your/file.gif";
header("Content-Type: image/gif");
header("Content-length:".filesize($filename));
$fn=fopen($filename,"rb");
while(!feof($fn)) {
echo fread($fn, 4096);
}
in fopen( , "");
the b denotes to read as binary and is only nessecary on a windows system
"Jj Harrison" <[EMAIL
4 matches
Mail list logo