How would i go about parsing an html file (http://mediastreamhost.com:4078/index.html) so that the php script echos only the

Server Status
Stream Status
Listener Peak
Average Listen Time
Stream Title
Content Type:
Stream Genre
Stream URL
Stream AIM
Stream IRC
Current Song

    [man]dom-domdocument-loadhtmlfile[/man] is an HTML parser if you don't want to just use the various [man]string[/man] functions to identify the appropriate bits.

    There is also this.

      Yes i have seen the disclaimer and nullsoft doesn't have a problem with what i'm doing.

      also

      Warning: domdocument() expects at least 1 parameter, 0 given in /home/www/index.php on line 8

      Fatal error: Call to undefined function: loadhtmlfile() in /home/www/index.php on line 9

        I haven't seen your code, so I'm going to guess that you haven't provided domdocument() with the parameter it expects.

          I do believe you'll need PHP5 to use this class as you expect to.

            Write a Reply...