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.
php.net каза:'HTTP_REFERER' - The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
<?php echo '<a href="ref2.php">REF2</a><br />';
if($_SERVER['HTTP_REFERER']) echo $_SERVER['HTTP_REFERER'];
?>
<?php echo '<a href="ref1.php">REF1</a><br />';
if($_SERVER['HTTP_REFERER']) echo $_SERVER['HTTP_REFERER'];
?>
Karcho каза:И все пак работи, само като кликнеш например на някой линк. Ако съм в Google и напиша localhost в адрес бара, HTTP_REFERER няма да върне нищо.