Is there a way that I can have PHP look up what page is currently loaded so that I can have it do certain things depending on which page is being viewed?
For instance, I've got a PHP include on several pages which selects a random picture to display. BUT, it would be nice to figure out if the user is viewing index.html, and if they are, to display a certain picture.
I know how to display the picture, I just don't know how to get PHP to recognize which page is loaded. Hope this makes sense.