note 6633 deleted from require by ronabop

From: Date: Fri, 11 Aug 2000 08:07:58 +0000
Subject: note 6633 deleted from require by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1060@lists.php.net to get a copy of this message
I have a file named index_new.php and an include file, ad_impr.php. If I try to use $REMOTE_ADDR or $REMOTE_HOST or $HTTP_USER_AGENT in ad_impr, wrong values are returned from Apache. (e.g. $HTTP_USER_AGENT is "PHP/4.0RC2"). If I pass their values as parameters, e.g. <PRE> require("ad_impr.php?useragent=$HTTP_USER_AGENT"); <PRE> it works. Is there another way to do this, without passing the values?

« previous php.notes (#1060) next »