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
Release: 2016-07-13 10:24:54
Original
832 people have browsed it

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...
Related labels:
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