flash has security setting. stop you to display image from another domain name. I am thinking about to have php file to show images. www .mydomain.com/showimage.php ?ur=www.yahoo.com/logo.gif -- just example I can use phpthumb, but it creates image cache , leave it on my space. every time when visitors see the image, it goes my web site, it wastes alot of my bandwidth. is there a way to use php file to show exteral image, but not saving a copy on my host? Ifound this solution, but not sure about the performance. if I have thousand users display images simultaniously. not sure it still gonna work. and images still come out from my web site, so still waste my bandwidth, how to solve this problem. please help me out. // put ...php?src=IMAGEURL header("Content-type: image/jpeg"); $file = fopen ($_GET["src"], "r"); if (!$file) { echo "Unable to open remote file.\n"; exit; } while (!feof ($file)) { $line = fgets ($file, 1024); echo $line; } fclose($file);
I'm not sure about a way to get what you want in PHP, but I know that you can add an additional parameter to flash so you can display movies hosted elsewhere. Read this: www.adobe.com/support/flash/publishexport/shockmachine_flash4/shockmachine_flash406.html
hi, thanx for help. but that not gonna solve the problem. flash has security setting. it stops your to link other domain and load from other domain. this is a really annoying feature they have.
Use the imagecreatefrom__() functions. Just create a switch statement when grabbing the file so you know the proper one to use depending on the image.