[PHP] file url access funniness

2012-03-10 Thread TR Shaw
This is weird. This statement fails: $tlds = file(http://www.surbl.org/tld/three-level-tlds;, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); Warning: file(http://www.surbl.org/tld/three-level-tlds): failed to open stream: HTTP request failed! HTTP/1.0 502 Bad Gateway also tried the

Re: [PHP] file url access funniness

2012-03-10 Thread Simon Schick
Hi, TR Shaw I would next try curl as php-extension. If that is working well, and you need it definitely with file() I'd use Wireshark to check which request is sent to the remote machine. Bye Simon 2012/3/10 TR Shaw ts...@oitc.com This is weird. This statement fails: $tlds =