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.

  1. curl-call on sitea retrieving content (php-file) siteb
  2. 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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -