note 43021 added to ref.image

From: Date: Mon, 07 Jun 2004 05:05:52 +0000
Subject: note 43021 added to ref.image
Groups: php.notes 
Request: Send a blank email to php-notes+get-70547@lists.php.net to get a copy of this message
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); ?> ---- Manual Page -- http://www.php.net/manual/en/ref.image.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43021 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43021&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43021&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70547) next »