php question

Andrew Brink abrink at brink.cx
Fri Nov 8 04:19:43 CST 2002


for prints you should probably just do

print "Time: $thetime";

On Wed, 2002-11-06 at 23:26, Kurt Kessler wrote:
> I am trying to learn php in my non-existent free time.
> I have added a script to my webpage that will show
> your IP address...blah blah blah, anyway, here is the
> script:
> 
> "<?php
> 
> $thedate = date('H:n');
> $theIP = $HTTP_SERVER_VARS['remote_host'];
> 
> echo 'Your IP: '.$theIP;
> echo '<br>';
> echo 'Time: '.$thetime;
> 
> ?>"
> 
> (minus quotes of course) and here is the error showing
> up on my site:
> 
> '; echo 'Time: '.$thetime; ?> 
> 
> Anyone know what I did wrong here? Thanks for any
> help.
> 
> Kurt
> 
> __________________________________________________
> Do you Yahoo!?
> U2 on LAUNCH - Exclusive greatest hits videos
> http://launch.yahoo.com/u2
> 
> 
> 
> 




More information about the Kclug mailing list