Redirecting image to php page.

Posted by Searock on Stack Overflow See other posts from Stack Overflow or by Searock
Published on 2010-06-17T19:54:29Z Indexed on 2010/06/17 20:23 UTC
Read the original article Hit count: 213

Filed under:
|

Hi,

Is it possible to redirect a user to a php page and then redirect to different image, if the user is requesting for the image ?

For example if user requests for the image or if other website requests for the image, it should be redirected to the php page and then redirected to a different image.

Like if other website requests for http://example.com/images/a.gif, the website will get a different image i.e. http://example.com/images/b.gif.

Is it possible? Let me know if I am not clear with my problem.

Thanks.

Edit : I am trying to create avatar changer for a forum, but the problem is that I cannot add a php link to my avatar. So I think if I could add a image link and when the forum requests the image I could redirect it internally to a php page and then from the php page I would redirect it to a different image.

© Stack Overflow or respective owner

Related posts about php

Related posts about apache