Mmmm si no te funciona es que no tienes activado allow_url_fopen, por lo tanto tendrás que hacer todo a mano usando
curl()...
Código PHP:
Ver original<?php
curl_setop($curl, CURLOPT_URL, 'http://www.mipaginaweb.com/chat.txt');
curl_setop($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setop($curl, CURLOPT_FOLLOWLOCATION, 1);
echo $txt;