Rob wrote:[color=blue]
>
> Andy Hassall wrote:
>[color=green]
> > You've suppressed warnings with @, and you're using the return value from
> > file() directly.[/color]
>
> ah, ok ... now i get this (e-mail edited!) :
>
> Warning: file(): php_network_getaddresses: getaddrinfo failed: Temporary
> failure in name resolution in /home/rob/www/php/phpMySetiStats/download.php
> on line 7
>
> Warning: file(http://...@<my email>&cmd=user_stats_new): failed to open
> stream: Resource temporarily unavailable in
> /home/rob/www/php/phpMySetiStats/download.php on line 7
>
> but using the URL directly from Mozilla gives me the stats page, so it is
> there and available.
>[color=green]
> > And anyway - if you're on 4.3, you may as well use file_get_contents().[/color]
>
> ok.
> btw ; in this case it gives the same error :
>
> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed:
> Temporary failure in name resolution in
> /home/rob/www/php/phpMySetiStats/download.php on line 8
>
> so there's probably something wrong with the way i supply the URL ...
> i'll keep trying ;-)[/color]
You may want to urlencode() the $email address. If that doesn't work, maybe the
site uses a redirect or something? If so try fsockopen().
Regards,
Shawn
--
Shawn Wilson
shawn@glassgiant.com http://www.glassgiant.com