<?php $file = file('file.txt'); $m=parse_url($file[2]); //3 строка echo $m['host']; //результат: forum.antichat.ru ?>