Checking Original URL
| From: | The Disguised Jedi | Date: | Thu, 23 Dec 2004 03:50:01 +0000 |
| Subject: | Checking Original URL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-205036@lists.php.net to get a copy of this message | ||
I have a file "image_server.php" that receives requests through <img>
tags & GET variables, and returns the requested image with PHP GD
support.
That runs all fine and dandy, but I want to check the absolute URL
that is calling it to make sure it is an approved URL. (For example,
I need the URL of the HTML file that contains the <img> tag that is
requesting the image from the php script)
I have tried $_SERVER['REQUEST_URI'] but that just returns the path to
the php script file. Is there a different variable that I can use? I
haven't exhausted all of my searching, but figured a question here
would save me some time! I'll keep searching in the meantime!
Thanks in advance . . .
--
The Disguised Jedi
disguised.jedi@gmail.com
PHP rocks!
"Knowledge is Power. Power Corrupts. Go to school, become evil"
Disclaimer: Any disclaimer attached to this message may be ignored.
This message is Certified Virus Free