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
精彩评论