PHP search for website with specific words

I’m trying to monitor a new products page of a website with specific words. I already have a basic script that searches for a single word using file_get_contents(); however this is not effective.

Looking at the code they are in <td> tags within a <table>

How do I get PHP to search for the words no matter what order and get declaration they are in? e.g.

$searchTerm = "Orange Boots";

from:

<table>
   <td>Boots (Red)</td>
</table>
<table>
   <td>boots (ORNAGE)</td>
</table>
<table>
   <td>Shirt (Green)</td>
</table>

Returns a match.

Sorry if its not clear, but I hope you understand

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories