Quote:
Originally Posted by kazymjir
Zoxxa, sorry, but this makes completely no sense.
|
To you.
Quote:
Originally Posted by kazymjir
If you know all search engine links ($search_engines array), why do you search them? It's like "I *know* that lighbulb and toy car is inside this box, but I will check it anyway".
|
Because from his example list he doesn't. He had links with paypal / paxum as well. I suppose he could just select all links between <h3>search engine links</h3> and <h3>payment links</h3> with regex or with xpath, but my code would work with all links he grabs from any section anywhere. If he is only concerned with that block, then regex that part out or xpath.
Quote:
Originally Posted by kazymjir
Also, what will be if you don't have a link in $search_engines that exists in test.txt ?
|
Like I said,he could use regex to grab the block, or just keep a simple list of search engines he wants to extract.
Quote:
Originally Posted by kazymjir
And, why you are firing up PHP, performing DOM/regexp processing, while it can be done with single sed command?
|
I code with php, not sed, so obviously my help would be provided with php. I didn't see your post so chill the fuck out allstar.