Home » » Get full url from address bar in php

Get full url from address bar in php

Written By Unknown on Selasa, 10 Juli 2012 | 00.21

Get the full webpage address from your address bar

 function get_url(){
$p=$_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
$f=$p.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
return $f;
}


Call Function
echo get_url();
Share this article :

Posting Komentar

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Kumpulan Kata Broadcast Blackberry - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger