View Single Post
Old 08-02-2012, 12:20 PM  
Zoxxa
Confirmed User
 
Zoxxa's Avatar
 
Industry Role:
Join Date: Feb 2011
Location: Ontario, Canada
Posts: 1,026
Quote:
Originally Posted by kazymjir View Post
Zoxxa, sorry, but this makes completely no sense.
To you.

Quote:
Originally Posted by kazymjir View Post
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 View Post
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 View Post
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.
__________________
[email protected]
ICQ: 269486444
ZoxEmbedTube - Build unlimited "fake" tubes with this easy 100% unencoded CMS!

Last edited by Zoxxa; 08-02-2012 at 12:22 PM..
Zoxxa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote