Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

What is a simple php code to render a image from another site.?

I need to make a Flash 8 application load an image from servers I don't have access to that have cross-domain file policies. I need the swf to think that the image comes from the same domain to use the BitmapData.draw() function with these images but there wasn't any wway to check for a cross-domain file policy until version 9. Is there a php code I could use so I could reference the php and get the image I wanted to load with a query string or POST variable i.e.

proxyImage.php?http://image.youneed.com/picture.jpg

Update:

Yes, the other site allows hot-linking. I already mentioned they have a cross-domain file policy. I just can't access the cross-domain file policy for the BitmapData class with Flash 8. I can't afford to upgrade to Flash 9 which has this bug fixed. I actually do have a legitimate reason for this, I can load and display the images, I just need to be able to manipulate the data to resize the image on the fly. I don't have access to the servers where the images are stored, so I can't work around it using multiple swf files. I know it would be better not to use a proxy image loading script and as soon as I can afford it or figure out how to edit my script in binary to version 9 format I'll do that. I've found a few script examples, but they seem to be lacking something. I don't know much php yet so I was hoping someone would have a code I could use.

1 Answer

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    Unless the other site allows hot linking or the image is in the public domain, you would be better off not even attempting what you want to do.

    Ron

Still have questions? Get your answers by asking now.