Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
joTunkiq каза::?: :?:PHP:<?php $current_url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; echo $current_url; ?>
joTunkiq вече ти показа как - просто ползваш неговата променлива $current_url и я ползваш в твоя html?h4x0r каза:Ами как мога да го съчетая с следното
<div class="fb-like" data-href="$current_url" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
:?:<div class="fb-like" data-href="<?php echo $current_url; ?>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
<div class="fb-like" data-href="http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
<?php
function getPageURL(){
$URL = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https://' : 'http://';
$URL .= ($_SERVER['SERVER_PORT'] != '80') ? ($_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]) : ($_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
return $URL;
}
?>
<div class="fb-like" data-href="<?php echo getPageURL(); ?>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>