PHP GD2: image linked to another image
|Posted: Wed, 2007-06-20 04:20|
I need help on this CODE.
There will be 2 image files (one real, one virtual-php) and general HTML file.
in the HTML -
Now I want, whenever it gets the mydomain.com/abc.jpg file, it will redirect itself to http://imagehost.com/abc.jpg using the internal PHP code of abc.jpg
In short, mydomain.com/abc.jpg will work as a short-cut to imagehost.com/abc.jpg
How to do that using GD2 library functions ??
NOTE: I have tried mod_rewrite, but then the list is getting longer and longer, impossible to handle