Search the Code Archives linked from http://php.net/links.php

Basically, it's just this:

<?php
    header("Content-type: image/gif");
    header("Content-length: " . file_length($filename));
    #Whatever caching headers you want -- lots of them
    passthru($filename);
?>

There are different twists and turns depending on how you want the image
cached, and whether you want the images inside your web-tree or not, and if
you want just GIF or a more general-purpose solution or...

Code Archives have it all.

----- Original Message -----
From: <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Thursday, January 11, 2001 4:13 AM
Subject: [PHP] image through php


> Hi!
>
> I want to use a code like:
> <img src="./randomgif.php">
>
> I know, this is possible with perl, but with php?
> ... and it should be performant as well :-) !!
>
> thanks
> any hints appreciated
> witty
>
> --
> Sent through GMX FreeMail - http://www.gmx.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to