Re: whats wrong with this code?
| From: | John Parker | Date: | Fri, 11 Aug 2000 20:25:08 +0000 |
| Subject: | Re: whats wrong with this code? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11399@lists.php.net to get a copy of this message | ||
ummmmm, this might be basic (but I've done it before)........
Did you remember to output somewhere before you execute the pasted code:
<html><head></head><body>
check view page source in Netscape or the equivalent in IE.
Happy weekend.
John Parker
"Martin A. Marques" wrote:
>
> <?
> $ip=getenv("REMOTE_ADDR");
> $name=gethostbyaddr($ip);
> $dns_nombre=split(".",$name);
>
> for (reset($dns_nombre);$llave=key($dns_nombre);next($dns_nombre)){
> echo(sprintf("%s, ",$llave));
> echo(sprintf("%s <br>",$dns_nombre[$i]));
> }
> ?>
>
> It outputs nothing at all. Why is this???
>
> --
> "And I'm happy, because you make me feel good, about me." - Melvin Udall
> -----------------------------------------------------------------
> Martin Marques email: martin@math.unl.edu.ar
> Santa Fe - Argentina http://math.unl.edu.ar/~martin/
> Administrador de sistemas en math.unl.edu.ar
> -----------------------------------------------------------------
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
John Parker, Design Engineer, Snorkel International
Ph: 816/676-6419 Fax: 785/989-3556