Tag Archives: server variables

Smarty Server environment variables

Description: How to echo server environment variables in Smarty templates, such as HTTP_HOST Solution: You can access $_SERVER variables through $smarty.server : <p>{$smarty.server.SERVER_NAME}</p> Advertisements

Posted in PhP, Script | Tagged , | Leave a comment