|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
.jpg request opens .php
Not sure what method to use to go about this.
I have an image hosting site. When a user clicks or types in: http://www.domain.com/imagename.jpg i want to direct them to http://www.domain.com/imagename.php my reason for doing this is so I can place ads on the image page and not just the upload page, which is how I have run the site up to this point. |
|
#2
|
|||
|
|||
|
My suggestion is to write code so the user goes to a php page for the image, and that php page pulls up the actual image file from wherever it is on the filesystem and then proxies it out to the browser.
You could change the mapping for .jpg files in IIS but doing so may have other unintended side-effects in other sites on the server.
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > .jpg request opens .php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|