1zeus1 Posted August 29, 2012 Share Posted August 29, 2012 Hey Guys i'm trying to figure out how to find a specific tag and grab the content between it. <body> <h1>Hello PHP Freaks!</h1> <table> <tr class="ad"> <td> <a class="a1" href="aaa.php></a> </td> </tr> <tr class="ad"> <td> <a class="a1" href="bbb.php></a> </td> </tr> </table> </body> </html> Result: aaa.php bbb.php regards Quote Link to comment https://forums.phpfreaks.com/topic/267770-grab-content-curl-dom/ Share on other sites More sharing options...
Christian F. Posted August 29, 2012 Share Posted August 29, 2012 You'll want to use the DOMDocument class for this. Quote Link to comment https://forums.phpfreaks.com/topic/267770-grab-content-curl-dom/#findComment-1373681 Share on other sites More sharing options...
salathe Posted August 29, 2012 Share Posted August 29, 2012 You'll want to use the DOMDocument class for this. Oh really? grab content curl dom Ya really. 1zeus1, what have you tried so far? Quote Link to comment https://forums.phpfreaks.com/topic/267770-grab-content-curl-dom/#findComment-1373697 Share on other sites More sharing options...
MMDE Posted August 29, 2012 Share Posted August 29, 2012 Give us some code on how far you've gotten, and we will try to help you get it working. Quote Link to comment https://forums.phpfreaks.com/topic/267770-grab-content-curl-dom/#findComment-1373699 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.