Forums / Developer / Php Script to Fetch latest published articles.

Php Script to Fetch latest published articles.

Author Message

John Smith

Tuesday 22 March 2005 2:00:51 am

hi there,

I think sombody can help me. I got two sites, one is made in ezpublish(news sitestyle) and the other one is the simple site in php. What i want to do is, fetching the newest news from my ezpublish site and displaying on the other php site. Please give some some suggestion. Please suggest me the tables which i need from ezpublish.

cheers.

Ekkehard Dörre

Tuesday 22 March 2005 2:08:24 am

Hi,

create a RSS Export in eZ publish and import the feed into your php site.

Greetings ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

John Smith

Tuesday 22 March 2005 2:22:25 am

I think i can't do that what i want in RSS Export. I want second site to be automatically updated if i publish some new articles on my ezpublish site.

Please help.

Ekkehard Dörre

Tuesday 22 March 2005 4:12:49 am

The RSS-Feed is automatically updated, too.
Perhaps I think in a different direction.

Another way is something like this:

http://ez.no/solutions/solutions_and_software/content_server

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Jonathan Dillon-Hayes

Wednesday 23 March 2005 3:08:16 am

You'll need something on the other account to parse the RSS file amigo...

Take a look at this excellent tool...
http://magpierss.sourceforge.net/

Here is a technical article on how to parse RSS with php:
http://www.sitepoint.com/article/php-xml-parsing-rss-1-0

And lastly, how to use Magpie:
http://www.olate.com/articles/214

So, you just point it at the file that eZ Publish provides, and you're done. It's actually really easy (20-30 minutes, maybe two hours if you have to struggle through it I should think, but YMMV).

Jonathan

---------
FireBright provides advanced eZ deployment with root access
http://www.FireBright.com/