Author Topic: How to use link on another site?  (Read 1025 times)

chjpz1314

  • Newbie
  • *
  • Posts: 2
How to use link on another site?
« on: September 06, 2009, 02:39:21 am »
Hi, please help me.
How to use any full link on another web in <img />?
Ex:
My web page:
http://my_web.com/page
Quote
<page>
   <img src="http://another_web.com/story/chapter-12/page-2.jpg" />
</page>

Thanks!

bnnorman

  • Newbie
  • *
  • Posts: 16
Re: How to use link on another site?
« Reply #1 on: September 06, 2009, 10:37:14 pm »

Hans Nücke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 787
  • MegaZine3 Sales Manager
Re: How to use link on another site?
« Reply #2 on: September 07, 2009, 12:50:36 pm »
If it is a Flash security issue then the hint I give in the latest YouTube Video Tutorial at
http://www.youtube.com/watch?v=eW2p83ih_mA

might also be a solution

chjpz1314

  • Newbie
  • *
  • Posts: 2
Re: How to use link on another site?
« Reply #3 on: September 07, 2009, 02:39:11 pm »
Hi there, thanks for replied..
I found one way out to use anylink on another site using php.

Ex:
Quote
<page>
   <img src="images.php?src=http://another_web.com/story/chapter-12/page-2.jpg" />
</page>

In megazine.swf dir, create a php file named images.php

This is php code:
Quote
function load_img($src) {
   $im = @imagecreatefromjpeg($src);
   if (!$im) {
      $im  = imagecreatetruecolor(400, 600);
      $bgc = imagecolorallocate($im, 255, 255, 0);
      $tc  = imagecolorallocate($im, 0, 255, 0);
      imagefilledrectangle($im, 10, 570, 390 , 590, $bgc);
      imagestring($im, 5, 100, 225, "ERROR: FILE NOT FOUND!", $tc);
      imagestring($im, 2, 40, 573, "Copyright 2007-2009 florian Nucke. All rights reserved.", imagecolorallocate($im, 0, 0, 0));
   }
   return $im;
}

$img = load_img(urldecode($_GET['src']));

header('Content-Type: image/jpeg');
imagejpeg($img);
imagedestroy($img);