| Searching HTML code with PHP
|
j2trumpet

msg:4061123 | 2:04 am on Jan 15, 2010 (gmt 0) | I need to write a script that will look at the HTML code generated by another PHP script, search that code for a specified string (opening td tag with attributes), load the code between that string and another specified string (closing td tag) into a variable, then loop until it doesn't find anymore instances of the first specified string. Can someone please help me?
|
TheMadScientist

msg:4061142 | 2:36 am on Jan 15, 2010 (gmt 0) | This thread might help: PHP to parse HTML [webmasterworld.com] I think it was one of the last couple posts with the best answer, using PHPs DOM method... I didn't look at the thread when finding the link, so I don't remember exactly which post it was, but if I remember correctly one of the last couple posts seemed to contain the best answer.
|
|
|