Can someone help me understand why the script below display's the complete url without the query (when clicking on the print.php?id=Alpbach link included in the script).
Many Thanks
Torrent
www.ski-info-online.com
<?php
if (isset($HTTP_REFERER)) {
$file = parse_url($HTTP_REFERER);
$url = $file['scheme'] . "://" . $file['host'] . $file['path'] . $file['query'];
/$pattern = '(<!-- CONTENT STARTS -->.?<!-- CONTENT ENDS -->)';
$replace = '\0\n';
$content = eregi_replace($pattern,$replace,$file);
echo $content;*/
echo $file['query'];
echo $url;
//fopen($url,"r");
} else {
echo "<a href=\"print.php?id=Albach\">Click to invoke test</a>";
}
?>