开发者

PHP equivalent question

开发者 https://www.devze.com 2023-02-04 17:19 出处:网络
What is the PHP equivalent to <!-开发者_JAVA百科-#echo var=\"HTTP_REFERER\" --> and what code languageis <!--#echo var=\"HTTP_REFERER\" -->.As other answers have noted, the equivalent dire

What is the PHP equivalent to <!-开发者_JAVA百科-#echo var="HTTP_REFERER" --> and what code language is <!--#echo var="HTTP_REFERER" -->.


As other answers have noted, the equivalent directive is:

<?php echo $_SERVER['HTTP_REFERER']; ?>

But, to answer your other question, the language you quote in your question is 'Server Side Includes', or, at least, seems to be.


<?php echo $_SERVER['HTTP_REFERER']; ?>


$_SERVER['HTTP_REFERER'];

Good luck!


<?php
  echo $_SERVER['HTTP_REFERER'];
?>

More server related information is also in the $_SERVER array

0

精彩评论

暂无评论...
验证码 换一张
取 消