how i can get parts of web pages by php -
how i can get parts of web pages by php -
i want create news site gets content other news sites, open rss feed , feach url , open html dom of page text of news think have utilize domdocument class of php?
<?php $doc = new domdocument(); $doc->loadhtml("<html><body>test<br></body></html>"); echo $doc->savehtml(); ?>
http://www.php.net/manual/en/class.domdocument.php
rss feeds xml. links here utilize simplexml. load page can utilize curl or httprequest.
to analyse returned code utilize domdocument, too! alternatively utilize simplehtmldom.
php
Comments
Post a Comment