php question

Dustin Decker dustind at moon-lite.com
Thu Nov 7 14:02:38 CST 2002


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 at 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 |
                              *-------------------------------------------*




More information about the Kclug mailing list