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/

eZ debug

Timing: Jan 31 2025 01:34:09
Script start
Timing: Jan 31 2025 01:34:09
Module start 'content'
Timing: Jan 31 2025 01:34:09
Module end 'content'
Timing: Jan 31 2025 01:34:09
Script end

Main resources:

Total runtime0.1943 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 589.1953370.2734
Module start 'content' 0.00980.0116 959.46881,005.5781
Module end 'content' 0.02140.1728 1,965.04693,893.7891
Script end 0.1942  5,858.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00462.3782200.0002
Check MTime0.00130.6725200.0001
Mysql Total
Database connection0.00130.687010.0013
Mysqli_queries0.102052.50291410.0007
Looping result0.00140.73741390.0000
Template Total0.172488.710.1724
Template load0.00070.355110.0007
Template processing0.171788.355110.1717
Override
Cache load0.00050.251710.0005
Sytem overhead
Fetch class attribute can translate value0.00180.915510.0018
XML
Image XML parsing0.00020.121010.0002
General
dbfile0.00412.1329200.0002
String conversion0.00000.002930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

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

Time used to render debug report: 0.0002 secs