Home >Backend Development >PHP Tutorial >Use system constants in thinkphp templates and get the ip_PHP tutorial

Use system constants in thinkphp templates and get the ip_PHP tutorial

WBOY
WBOYOriginal
2016-07-14 10:11:511022browse

{$Think.server.SERVER_ADDR}

{$Think.server.REMOTE_ADDR}

{$Think.server.SERVER_NAME}

{$Think.const.__SELF__}

{$Think.const.APP_NAME}


{$Think.now}

{$Think.template}

{$Think.version}

{$Think.LDELIM}

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477252.htmlTechArticle{$Think.server.SERVER_ADDR}br /!--The ip of the current server-- {$Think.server .REMOTE_ADDR}br /!--Visitor external ip-- {$Think.server.SERVER_NAME}br /!--localhost-- {$Think.const.__SELF_...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn