OZONE Asylum
Forums
Server-Side Scripting - Oh my!
Scraper not working
This page's ID:
32442
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
If you see no errors, you should see an empty array being output - that means your regular expression is not matching. You'll need to take it apart until you have something that does match, then readd and find the difference. But honestly, a regular expression is not the right tool for this job (html can not be reliably parsed with a regular expression - you need a more powerful parser), and the one you sketched out is terrible sensitive to the whitespace between tags (and I'd bet even money on that that's also the reason it is not matching). See http://stackoverflow.com/questions/3650125/how-to-parse-html-with-php for some suggestions on how to do this in a robust manner. so long, ->Tyberius Prime
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail