Hi,
I have my image generator on one website and I want to use
the script on my second website. This scripts tracks the image
downloads to a database so I want to keep the scripts on that server.
Now I don't want to directly refer to the script of the other site in the HTML, so I am trying to access it via an intermediate php page,
so I tried this:
On my second website:
And then, still on second website, in the image_gen.php
I just have :
But this "image redirect" doesn't work
Probably because I am doubling up on the <img src> tags but I don't
know how to do this.
Any ideas on how to make it work ?
I have my image generator on one website and I want to use
the script on my second website. This scripts tracks the image
downloads to a database so I want to keep the scripts on that server.
Now I don't want to directly refer to the script of the other site in the HTML, so I am trying to access it via an intermediate php page,
so I tried this:
On my second website:
Code:
echo "<img src=\"http://www.second_site.com/sys/image_gen.php?url_id=$Db_prod\" width='300px' height='200px' alt='Thumbnail for $title_sht' border='2'>";
I just have :
Code:
if(isset($_GET['url_cd'])){ $prod = $_GET['url_cd']; <img src=\"http://first_web_site.com/gen_the_image.php?id=$prod\"> } ?>
Probably because I am doubling up on the <img src> tags but I don't
know how to do this.
Any ideas on how to make it work ?
Comment