pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: SG Edwards <s0460205@sms.ed.ac.uk>
Cc: pgsql-php@postgresql.org <pgsql-php@postgresql.org>
Subject: Re: problem with predefined variables
Date: Tue, 05 Apr 2005 23:25:21 +0800
Message-ID: <4252ADE1.6030700@familyhealth.com.au> (raw)
In-Reply-To: <1112713795.4252aa4384e8c@sms.ed.ac.uk>
References: <1112713795.4252aa4384e8c@sms.ed.ac.uk>

> 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 <b></b>.<br /><br />
> you are viewing this page usinig: <br /><b>PHP Notice:  Undefined variable: 
> HTTP_USER_AGENT in /home/s0460205/public_html/test.php on line 11
> </b><br />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



view thread (2+ messages)

Message-ID: <4252ADE1.6030700@familyhealth.com.au>
Permalink:  ../4252ADE1.6030700@familyhealth.com.au/
Also on:    postgresql.org/message-id/4252ADE1.6030700@familyhealth.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: chriskl@familyhealth.com.au, s0460205@sms.ed.ac.uk
  Subject: Re: problem with predefined variables
  In-Reply-To: <4252ADE1.6030700@familyhealth.com.au>
  References: <1112713795.4252aa4384e8c@sms.ed.ac.uk> <4252ADE1.6030700@familyhealth.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox