Posted by the DtTvB on 02/08/07 12:00
You should use the function htmlspecialchars().
$refhost = htmlspecialchars($refhost);
But even through you have changed it, you should just see "Array".
That's because of this line:
> $refhost = parse_url($refurl);
Ok, so you wanted to get the host name, instead of just having
$refhost = htmlspecialchars($refhost);
you have to make it this:
$refhost = htmlspecialchars($refhost['scheme'] . '://' .
$refhost['host'] . (isset($refhost['port']) ? $refhost['port'] : ''));
Navigation:
[Reply to this message]
|