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
Release: 2016-07-14 10:11:51
Original
1027 people have browsed it

{$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_...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template