Page 1 of 1

Switching Files

Posted: Fri Feb 25, 2011 1:20 pm
by kvhollis
Greetings!

I'm very new to PHP and have what I hope to be a quick easy question.

Can I take a HTTP request from x.com for a graphic on my server say in images/asdf.jpg and replace asdf.jpg with eieio.jpg for just the request from x.com? I have someone from x.com decide to "borrow" my images and bandwidth for their content. I'd like to have a a "little" surprise just for them to thank them. :D

Many thanks.

Re: Switching Files

Posted: Fri Feb 25, 2011 2:16 pm
by danwguy
not that I know of, since they are probably just using <img src="yoursite.com/images/asdf.jpg" /> the only thing I think you would be able to do is change the image name on your page to point to the image you want to display and then change the asdf.jpg to something you want to be shown on their page. Hope that makes sense.

Re: Switching Files

Posted: Fri Feb 25, 2011 3:53 pm
by Weirdan