Mailinglisten-Archive |
Moin,
folgende Situation:
image.htm
<html>
<body>
<img src="image.php" width="1" height="1">
</body>
</html>
image.php
<?php
header('Content-type: image/gif');
header('Expires: Sat, 22 Apr 1978 02:19:00 GMT');
header('Cache-Control: no-cache');
header('Cache-Control: must-revalidate');
printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%",
71,73,70,56,57,97,1,0,1,0,128,255,0,192,192,192,0,0,0,33,249,4,1,0,0,0,0,44,0,0,0,0,1,0,1,0,0,2,2,68,1,0,59);
$fp = fopen('out', 'w');
fputs($fp, $GLOBALS['HTTP_SERVER_VARS']['HTTP_REFERER']);
fclose($fp);
?>
Ich war freudig überrascht, dass nach einem Zugriff von
- MSIE 5.5
- Mozilla 0.9.2
- Netscape 4.77
in der Datei out jeweils genau das drin stand, was ich mir erhofft
hatte: die URL des Dokumentes, welches das Bild per <img> einbindet.
Meine Frage: Machen das alle Browser so?
--
sebastian bergmann sb_(at)_sebastian-bergmann.de
http://www.sebastian-bergmann.de
Meet the PHP Project at LinuxTag, Booth 5.0.334/2 - http://phpinfo.de/
php::bar PHP Wiki - Listenarchive