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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -