Re: {php} don't work

From: Date: Mon, 24 Sep 2001 23:29:19 +0000
Subject: Re: {php} don't work
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1536@lists.php.net to get a copy of this message
ups!, I forgpot that! thanks but I already changed to: welcome from {$smarty.server.REMOTE_ADDR} On Mon, 24 Sep 2001 17:16:32 -0500 Monte Ohrt <monte@ispi.net> wrote: > global values are not available from within a php function. try this: > > {php} > global $HTTP_SERVER_VARS, REMOTE_ADDR; > echo "welcome from ".$HTTP_SERVER_VARS["REMOTE_ADDR"]; > echo "<br>or from.. ".$REMOTE_ADDR; > {/php} > > >

« previous php.smarty.general (#1536) next »