Use PHP to find text within an HTML Page -
i write php code parse html return href , title of of images in "image_url" class. using substr find location of strings, webpage changes content , can't rely on substr. there dom way or other regular expression way can find these elements within html?
<a class="image_url" href="/123.jpg" target="_blank"><img src="/123.jpg" border="0" title="some dynamic length image title making difficult me"></a>
you can use 3 things far know
- php simple xml parsing
- php domdoucment.
- simplehtmldom parser
Comments
Post a Comment