php switch based off of folder domain name
<p>Is it possible to have one php page that uses a switch to show a certain image based off a subdomain that accessed that page? For example, www.mysite.com/example1 would show example1.jpg, whereas www.mysite.com/example2 would show example2.jpg? I have a print form that I would like to have someone be able to print from the page but there are over 50 different subfolder names that are used in our offline url's.</p>

<p>Hope this makes sense and something like a switch could do the trick with this.</p>

<p>Thank you for any help you can give.</p>
