I have this function in php that takes the current url:
<?php
function UrlAtual(){
$dominio= $_SERVER['HTTP_HOST'];
$url = "http://" . $dominio. $_SERVER['REQUEST_URI'];
return $url;
}
?>
I'd like to use this current url <?php echo UrlAtual(); ?>
in an image. I tried the following bad way did not work:
<a href="<?php echo UrlAtual(); ?>" target="_blank" rel="nofollow"><img src="https://3.bp.blogspot.com/-qoDmQ9q_4VI/WAoI-hJPlxI/AAAAAAAAALI/V9C0JhIDuW8SQ4JQwa6NXaLo_PE4CWwDQCLcB/s1600/02.png"width="250px"/></a>
insira o código aqui