I've just use with absolute url like: http://192.168.1.5/demo/index.html
I tried to extract the title from this page but I didn't get it and apache crashed.
As you mentioned your class works with websites but sorry to say it didn't work or may be I am doing wrong below is the code:
$ob = new GTV(
Please let me know if I am doing anything wrong