Re: image through php

From: Date: Thu, 11 Jan 2001 23:14:13 +0000
Subject: Re: image through php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34138@lists.php.net to get a copy of this message
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: <mailing_list@gmx.at> 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#34138) next »