problem with predefined variables
am 05.04.2005 17:09:55 von SG EdwardsHi,
I am just learning PHP and have a very simple script to access data in a
predefined variable as follows:
echo "you are running the file $PHP_SELF.
\n";
echo 'you are viewing this page usinig:
', $HTTP_USER_AGENT, '=
b>
/>from the IP address ', $REMOTE_ADDR;
?>
However, the assignment does not happen, giving the command line error (P=
HP
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 variabl=
e:=20
HTTP_USER_AGENT in /home/s0460205/public_html/test.php on line 11
from the IP address PHP Notice: Undefined variable: REMOTE_AD=
DR in
/home/s0460205/public_html/test.php on line 11)
- why would this occur?
Many thanks
(I am running PHP/4.3.10)
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend