Results 1 to 3 of 3

Thread: [RESOLVED] Retrieving information from a html file

  1. #1
    Join Date
    Feb 2009

    resolved [RESOLVED] Retrieving information from a html file

    I would like to access certain information in a html file given through an url. I have done this before using regex, but that is hardly easy. I was wondering if i could retrieve information easier using some DOM syntax, as if i were to run JavaScript in the loaded html document.

    Knowing that php is capable of extracting information from xml, I'm wondering if information can be extracted from a html document in a similar manner.

    Thanks for any help

  2. #2
    Join Date
    Nov 2008
    DomDocument is the best way to parse HTML source, or if it's XHTML you can use SimpleXML.

  3. #3
    Join Date
    Feb 2009
    Thanks :-)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles