<?php
echo '<input type="text" value="http://www.site.com'.htmlspecialchars(strip_tags($_SERVER['REQUEST_URI'])).'" size="50">';
?>
Parantezin biri fazla olmuş tekrar denermisin.