Date: 05/04/00
- Next message: Bas Kamer: "[phplib] ZEND and PHPBaseLib"
- Previous message: Ulf Wendel: "Re: [phplib] OOH Forms"
- Next in thread: Mocha PHPLIB: "Re: [phplib] $REMOTE_ADDR string empty"
- Reply: Mocha PHPLIB: "Re: [phplib] $REMOTE_ADDR string empty"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I have the following problem: when I use the $REMOTE_ADDR string in my
phplib code, it seems to be empty. I am trying to use it for logging
purposes (ie. put the address in a log database). Is there any other way
in php to get the address someone's coming from?
I am using FastTemplate, could that be the problem? Or is it with
phplib?
When I make a plain page as follows, the variable does not show up empty
(as it should).
<?php
printf("coming from $REMOTE_ADDR");
?>
Mind, I do not do it like this in my pages, but instead:
<?php
page_open( ...blah... );
## first some fasttemplate defines, then:
$tpl->assign(array(FROM => "$REMOTE_ADDR"));
$tpl->parse( ...blah... );
$tpl->FastPrint();
page_close( ...blah... );
?>
--
.:: debian linux : :: :::::::::::::::::.
:: Nico Galoppo ::::: :: vim powered ::
:: scratch at crossbar dot net ::
:: http://scratchor.dhs.org ::
::. .::
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Bas Kamer: "[phplib] ZEND and PHPBaseLib"
- Previous message: Ulf Wendel: "Re: [phplib] OOH Forms"
- Next in thread: Mocha PHPLIB: "Re: [phplib] $REMOTE_ADDR string empty"
- Reply: Mocha PHPLIB: "Re: [phplib] $REMOTE_ADDR string empty"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

