Hi, I would like to know a resource or simple solution for this,
I have a mySQL database with lots of links. I need said solution to visit each link and download the HTML file for it. Like an indexer which is told where to index.
redZERO
0
Junior Poster in Training
Recommended Answers
Jump to PostHi, I would like to know a resource or simple solution for this,
I have a mySQL database with lots of links. I need said solution to visit each link and download the HTML file for it. Like an indexer which is told where to index.If you have CURL …
Jump to Postuse regular expressions
Look here:
http://ca3.php.net/preg-match-all
Jump to PostThanks so much for the help! Is it possible to save only the data between the <body> tags?
Like said, regex will do the job.
Something like:
preg_match("/<body([^>]*)>(.*?)<\/body>/i", $txt, $matches);
You will have to check for multiple lines if the <body> tags spans more than 1 …
All 10 Replies
digital-ether
399
Nearly a Posting Virtuoso
Team Colleague
redZERO
0
Junior Poster in Training
FireNet
64
Posting Whiz in Training
digital-ether
399
Nearly a Posting Virtuoso
Team Colleague
redZERO
0
Junior Poster in Training
digital-ether
399
Nearly a Posting Virtuoso
Team Colleague
redZERO
0
Junior Poster in Training
digital-ether
399
Nearly a Posting Virtuoso
Team Colleague
redZERO
0
Junior Poster in Training
digital-ether
399
Nearly a Posting Virtuoso
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.