Re: using images from another site

From: Date: Sun, 03 Dec 2000 17:26:00 +0000
Subject: Re: using images from another site
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-39915@lists.php.net to get a copy of this message
Hello SCott, This list is only for developers of the PHP Language, not for users of PHP. Please be so kind to ask your questions on the php-general mailing list. Scott Guthrie wrote: > > I have tried many things, like 'copy', the fopen,fread,echo track and even > readfile("http://colomar.com/creditcard.gif") for > example. The readfile is > close, but I get the output in binary output to the screen instead of a > image. > (line starts out as: GIF89a}µÞ¥ÆGIF89a}µÞ¥Æ....) Just do before your readfile call: Header ("Content-Type: image/gif"); and it will work correctly. -- Derick Rethans --------------------------------------------------------------------- PHP: Scripting the Web - www.php.net - derick@php.net --------------------------------------------------------------------- JDI Media Solutions - www.jdimedia.nl - d.rethans@jdimedia.nl H.v. Tussenbroekstraat 1 - 6952 BL Dieren - The Netherlands ---------------------------------------------------------------------

« previous php.dev (#39915) next »