note 43021 deleted from ref.image by aidan

From: Date: Sat, 08 Jan 2005 14:33:43 +0000
Subject: note 43021 deleted from ref.image by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82954@lists.php.net to get a copy of this message
Note Submitter: andre-macedo _AT_ sapo _DOT_ pt ---- There's a very simple way to redirect an image from another domain and present it as your own, bypassing "across domain" security features that are now common on all browsers: <?php //Send header header("Content-type: image/png"); //Get image from foreign domain $im = imagecreatefrompng("http://www.foreigndomain.com/image.png"); //Present it as your own imagepng($im); ?>

« previous php.notes (#82954) next »