X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 539DE533A4 for ; Tue, 5 Apr 2005 16:25:25 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75548-08 for ; Tue, 5 Apr 2005 15:25:24 +0000 (GMT) Received: from vscan01.westnet.com.au (vscan01.westnet.com.au [203.10.1.131]) by svr1.postgresql.org (Postfix) with ESMTP id 13E285335D for ; Tue, 5 Apr 2005 16:25:23 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 85D2BCEF63; Tue, 5 Apr 2005 23:23:55 +0800 (WST) Received: from vscan01.westnet.com.au ([127.0.0.1]) by localhost (vscan01.westnet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12188-20; Tue, 5 Apr 2005 23:23:55 +0800 (WST) Received: from [202.72.133.22] (dsl-202-72-133-22.wa.westnet.com.au [202.72.133.22]) by vscan01.westnet.com.au (Postfix) with ESMTP id 15B6FCF055; Tue, 5 Apr 2005 23:23:55 +0800 (WST) Message-ID: <4252ADE1.6030700@familyhealth.com.au> Date: Tue, 05 Apr 2005 23:25:21 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: SG Edwards Cc: "pgsql-php@postgresql.org" Subject: Re: problem with predefined variables References: <1112713795.4252aa4384e8c@sms.ed.ac.uk> In-Reply-To: <1112713795.4252aa4384e8c@sms.ed.ac.uk> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/12 X-Sequence-Number: 3096 > However, the assignment does not happen, giving the command line error (PHP > Notice: Undefined variable: PHP_SELF in /home/s0460205/public_html/test.php > on line 10 > you are running the file .

> you are viewing this page usinig:
PHP Notice: Undefined variable: > HTTP_USER_AGENT in /home/s0460205/public_html/test.php on line 11 >
from the IP address PHP Notice: Undefined variable: REMOTE_ADDR in > /home/s0460205/public_html/test.php on line 11) > > - why would this occur? You have register_globals = off in your php.ini. Try $_SERVER['PHP_SELF'] and $_SERVER['HTTP_USER_AGENT'] and $_SERVER['REMOTE_ADDR'] And read about superglobals and register_globals in the PHP docs. Chris