![]() |
scraping a webpage for text
hello,
i'm trying to make an app that when a user enters a domains name the file_get_contents will scrape only the visible text on the page and display to the user this is what i've got so far Code:
what am i doing wrong? thanks |
Only the visible text as opposed to...
|
Why can't you use strip_tags() ?
<?php echo strip_tags(file_get_contents('http://www.gothostin.com/sarmenhb')); ?> |
| All times are GMT. The time now is 09:43 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0