Forum Moderators: coopster
$fcontents = implode ('', file ('$HTTP_REFERER'));
$fcontents = stristr($fcontents, '<title>');
$rest = substr($fcontents, 7);
$extra = stristr($fcontents, '</title>');
$titlelen = strlen($rest) - strlen($extra);
$gettitle = trim(substr($rest, 0, $titlelen));
echo "Coming from: " . $gettitle . "<p>"; The code seems buggy, Anyone have suggestions?
$fcontents = implode ('', file ("$HTTP_REFERER"));
$fcontents = stristr($fcontents, '<title>');
$rest = substr($fcontents, 7);
$extra = stristr($fcontents, '</title>');
$titlelen = strlen($rest) - strlen($extra);
$gettitle = trim(substr($rest, 0, $titlelen));
echo "Coming from: " . $gettitle . "<p>";
Notice the double quote problem.