Home : Products : Gossamer Links : PHP Front End :

Products: Gossamer Links: PHP Front End: Re: [Riley] page.php? Can someone assist with this: Edit Log

Here is the list of edits for this post
Re: [Riley] page.php? Can someone assist with this
That's another quirk of using the PHP front end. You don't use Perl in the globals. For examples on how to do equivalents in PHP, see the time and date globals.
It would be something like:
Code:
create_function("", '
global $HTTP_SERVER_VARS;
return isset($HTTP_SERVER_VARS["HTTP_REFERER"]) ? $HTTP_SERVER_VARS["HTTP_REFERER"] : "nowhere";
');
Remember, when you use the tag in the template, you access it by:
<?print $referrer()?>

Note the ()'s, as now it's a function, not a regular variable.

Adrian

Last edited by:

brewt: Feb 19, 2002, 11:19 PM

Edit Log: