[PHP] Re: Executing Script through image

2002-07-09 Thread JJ Harrison
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]>

[PHP] Re: Executing Script through image

2002-07-09 Thread Richard Lynch
>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

Re: [PHP] Re: Executing Script through image

2002-07-09 Thread Marek Kilimajer
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

[PHP] Re: Executing Script through image

2002-07-09 Thread BB
$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