From: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
---|---|
To: | SG Edwards <s0460205(at)sms(dot)ed(dot)ac(dot)uk> |
Cc: | "pgsql-php(at)postgresql(dot)org" <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: problem with predefined variables |
Date: | 2005-04-05 15:25:21 |
Message-ID: | 4252ADE1.6030700@familyhealth.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Jerry | 2005-04-05 21:13:46 | Retrieve a list of databases using PHP |
Previous Message | SG Edwards | 2005-04-05 15:09:55 | problem with predefined variables |