Welcome to WebmasterWorld Guest from 54.226.194.180

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Searching HTML code with PHP

     

j2trumpet

2:04 am on Jan 15, 2010 (gmt 0)

5+ Year Member



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

2:36 am on Jan 15, 2010 (gmt 0)

WebmasterWorld Senior Member themadscientist is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month