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/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 02:26:43
Script start
Timing: Jan 20 2025 02:26:43
Module start 'layout'
Timing: Jan 20 2025 02:26:43
Module start 'content'
Timing: Jan 20 2025 02:26:43
Module end 'content'
Timing: Jan 20 2025 02:26:43
Script end

Main resources:

Total runtime0.0173 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.2891152.6406
Module start 'layout' 0.00560.0040 741.929739.4766
Module start 'content' 0.00960.0054 781.406393.3672
Module end 'content' 0.01500.0023 874.773434.3047
Script end 0.0173  909.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002916.6043140.0002
Check MTime0.00147.8510140.0001
Mysql Total
Database connection0.00073.986010.0007
Mysqli_queries0.003822.070330.0013
Looping result0.00000.081210.0000
Template Total0.001810.510.0018
Template load0.00105.573310.0010
Template processing0.00084.858110.0008
Override
Cache load0.00073.998410.0007
General
dbfile0.00042.134780.0000
String conversion0.00000.046840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs