Date: Thu, 7 Nov 2002 08:02:38 -0600 From: Dustin Decker <dustind@moon-lite.com> Subject: Re: php question Message-ID: <Pine.LNX.4.44.0211070800070.14305-100000@virgo.moon-lite.com>
On Wed, 6 Nov 2002, Kurt Kessler wrote:
> and here is the error showing
> up on my site:
>
> '; echo 'Time: '.$thetime; ?>
> Anyone know what I did wrong here? Thanks for any
Here you have declared a variable for date, and IP...
> $thedate = date('H:n');
> $theIP = $HTTP_SERVER_VARS['remote_host'];
...but not for time
> echo 'Your IP: '.$theIP;
> echo '<br>';
so when you ask for it here...
> echo 'Time: '.$thetime;
...php hasn't a clue what you're talking about.
Dustin
-- *-----------------------------------* | Dustin Decker | | dustind@moon-lite.com *-------------------------------------------* | http://www.dustindecker.com | "Every now and then, when your life gets | | Moon-Lite Computing | complicated and the weasels start closing | | 913.579.7117 | in, the only cure is to load up on | *-----------------------------| heinous chemicals and then drive like a | | bastard from Hollywood to Las Vegas ... | | with the music at top volume and at least | | a pint of ether." | | -- Hunter S. Thompson | | Fear and Loathing in Las Vegas | *-------------------------------------------*