-2

I am trying to develop a functionality where I should be able to read the DOM of a page using PHP. The page can be uploaded using an interface.

My intent is to actually read through the HTML and list out all the containers present in the HTML page.

Need some suggestions on how to go about it.

Stressing on that I want to be able to identify the elements on the page and make a list of all the elements present.

Rupesh Jain
  • 168
  • 3
  • 11
  • 1
    Anserws here: http://stackoverflow.com/questions/3577641/how-do-you-parse-and-process-html-xml-in-php – Mic Jaw Jun 11 '15 at 10:13

1 Answers1

1

You could use libraries like this: http://simplehtmldom.sourceforge.net/

Read the content of the uploaded file and than you can manipulate it.

If you want more information on that you should try it out and than ask specific questions as SO is not a tutorial-page.

DocRattie
  • 1,392
  • 2
  • 13
  • 27