Home >Backend Development >PHP Tutorial >Smarty's method to get the current url is shared_PHP tutorial

Smarty's method to get the current url is shared_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:24:54818browse

http://{$smarty.server.SERVER_NAME}/{$smarty.server.REQUEST_URI}

Note:

Copy code The code is as follows:

{$smarty.server.SERVER_NAME}//Indicates: server Name
{$smarty.server.REQUEST_URI}// means: requested url


For example: http://www.jb51.net/sysaction/getUserInfo.php
Copy code The code is as follows:

{$smarty.server.SERVER_NAME} //Represents: http://www.jb51. net
{$smarty.server.REQUEST_URI}// means: /sysaction/getUserInfo.php

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/825257.htmlTechArticlehttp://{$smarty.server.SERVER_NAME}/{$smarty.server.REQUEST_URI} Comments: Copy The code is as follows: {$smarty.server.SERVER_NAME}//Indicates: server name {$smarty.server.REQUEST...
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