nquinlan 0 Newbie Poster

I'm trying to find a way to find the URL of an external HTML document when it embeds an image generated by PHP. So for example I would want the following to happen if these two documents occurred.

http://example.com/index.html

<img src="http://otherplace.org/image.php" />

http://otherplace.org/image.php

header('Content-Type: image/gif');
readfile("test.gif");
$thelocation = MAGICAL_COMMAND;

$thelocation = http://example.com/index.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.