Hi,
I have a php script that outputs a png file via the gd. Everything works fine except that someday I want to be able to display the site that a user is looking at from my file. (assuming that the user is not just looking a the file directly) I've tried just using the variable $PHP_SELF but that doesn't work.
[more about what I mean]
Well, suppose that the [img] tag was inabled on this forum. Then, I could have my image show up on this page. Well because it was on this page, the text on the image would show:
http://www.phpbuilder.com/board/newthread.php?s=&action=newthread&forumid=10
next I need to be able to separate all this out to get just:
www.phpbuilder.com
How can this be accomplished?