http_host php_self

<?php
echo $_SERVER['HTTP_HOST'];
echo "<br/>";
echo $_SERVER['PHP_SELF'];
echo"传诚科技有限公司";
?>

输出localhost
/topic_37/test/server.php传诚科技有限公司

你可能感兴趣的:(http_host php_self)