plz suggest me how to get address of url on page. like if anybody view my page he'll also get link of tht page below. sorryfor bad english. Code (markup):
No Sir, tht like image host if we view any picture we also see image code. i am asking about address bar link.
If I understand you right... $url = 'http' . ($_SERVER['HTTPS'] ? 's' : null) .'://'. $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; PHP:
<? $url = $_SERVER['SERVER_NAME']; $page = $_SERVER['php_SELF']; echo "http://".$url.$page; ?> i put this code in my file bt this is getting only site name nt whole url tell me how to do it in proper way.
nico my frd , i alwayz thought how to do it in one line, u showed me bro cheers I think this is wat u need Dev, some free wallpapers would be awesome, hehehe, just messing <?php $url = $_SERVER['HTTP_HOST']; $page = $_SERVER['REQUEST_URI']; echo "http://".$url.$page; ?> PHP: same as nico but how u wanted it
Hi! Thank you for the snippet. How would one go about getting the URL if the webpage is a 3rd party page say the youtube homepage? .. of course in an automated way