Contact: aviboots(AT)netvision.net.il
40,875 questions
53,283 answers
573 users
echo "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; /* run: http://localhost:8080/test.php */
echo '<input type="text" id="input-text-id" name="current-url" size="100" maxlength="300" value="http://'."$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]".'">'; /* run: http://localhost:8080/test.php */