Switching Files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kvhollis
Forum Newbie
Posts: 1
Joined: Fri Feb 25, 2011 1:15 pm

Switching Files

Post 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.
danwguy
Forum Contributor
Posts: 256
Joined: Wed Nov 17, 2010 1:09 pm
Location: San Diego, CA

Re: Switching Files

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Switching Files

Post by Weirdan »

Post Reply