Get the full webpage address from your address bar
Call Function
echo get_url();
function get_url(){
$p=$_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
$f=$p.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
return $f;
}
Call Function
echo get_url();
Posting Komentar