PHP page from .jpg extension

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
benyboi
Forum Commoner
Posts: 80
Joined: Sat Feb 24, 2007 5:37 am

PHP page from .jpg extension

Post by benyboi »

Hello,

I run an image sotring website where a user can upload an image and get the url of that image for use on websites etc etc.

Is there anyway for me, when a user goes to xxxxx.com/upload/90wu0wqkqsa.jpg for it to load a php page instead with a GET variable of that file they just tried to get. Then on the php page show the image but also perform mysql queries.

If you understand me - is this possible?

Thanks!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Yes.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

nice 8)

mod_rewrite is what you seek
Post Reply