homepage Welcome to WebmasterWorld Guest from 54.227.141.230
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved