hi,
I currently display images on ebay with a simple image tag, that is hosted on my server,
I want to have it so that a range of IPs see a different image than someone outside of this particular IP range
i have tried...
<?
$visitor = $_SERVER['REMOTE_ADDR'];
if (preg_match("/144.1.1.1/",$visitor)) {
print "<img src=http://example.com/SYDN.jpg width=30 height=15><br>";
} else {
print "<img src=http://example.com/MELB.jpg width=30 height=15><br>";
};
?>
this seems to work in a browser, but when i use
<IMG SRC="http://example.com">
in ebay i just get the little box with a red x in it,
i know this is possible as i have used the following to display visitors flags in other auctions
<A HREF="http://www.hostip.info">
<IMG SRC="http://api.hostip.info/flag.php" BORDER="0" ALT="IP Address Lookup">
</A>
what have i done wrong?