开发者

PHP equivalent question

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜