Hi I want to analyze HTML page by following example.
- I can put url page to textfield then press enter.
- I get some text from HTML page such as title, h1, div id="do" or so on.
How I can do it by using PHP?
Thanks!
Hi I want to analyze HTML page by following example.
How I can do it by using PHP?
Thanks!
With file_get_contents()
or the like and an HTML parser.
Use file_get_contents or cURL, then use the explode functions to get data from the tags if using file_get_contents OR use "regex" for the particular html tag for getting the data