Get dynamic data from external host - establish mysql-connection or get data via curl? -
i need integrate sidebar-widget high traffic page of mine (referred sitea). widget should contain latest articles 1 of other pages (referred siteb).
on mind have 2 possible solutions.
- curl-call on sitea retrieving content (php-file) siteb
- on sitea connect mysql-db siteb
which way prefer? better , why?
i'd prefer setting rss feed articles on sitea , pulling them in existing library, nice , tidy, , means others can articles via rss too. if had pick i'd go option 1 (i'm assuming returned snippet of html can embed in page).
Comments
Post a Comment