thanks guys for the responses. i've tried urlencode like this:
Code:
<?php
$url = urlencode($_GET['lnk']);
header("Location: $url");
exit;
?>
unfortunatly it now shows a 404 on my server with the url encoded but it isn't a 404 if i just use the unencoded string, am i using urlencode correctly in the above example?