>So what's on "/usr/home/pagon/www/index.php on line 497" at a few lines
>before it?

         on line 497 theres the line:

          $linha=file('downs.txt');

         then the rest of the script as below.
         Before this line theres simple, very simple, html. I dont 
understand the error.


         Pag






> >
> >          <?
> > $linha=file('downs.txt');
> > $t=count($linha);
> > $l = $t - 1;
> > $fim = $l - 3;
> >
> > if ($l > 3)
> > {
> > $fim=$l - 3;
> > }
> > else {
> > $fim = 0;
> > }
> > for ($i = $l; $i >= $fim ; $i--) {
> >      $array=explode("|",$linha[$i]);
> >          print("<div align=\"left\">");
> >          print("<span class=\"data\">$array[0]</span>");
> >          print("<br>$array[1]<br>");
> >          print("</div><img src=\"spacer.gif\" height=\"3\">");
> >          }
> > ?>
> >
> >
> >          But from time to time, and with absolutely no visible reason, i
> > get this error:
> >
> >          Warning: php_network_getaddresses: getaddrinfo failed: No address
> > associated with hostname in /usr/home/pagon/www/index.php on line 497
> >
> > Warning: file("downs.txt") - Bad file descriptor in
> > /usr/home/pagon/www/index.php on line 497
> >



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to