Forums / Setup & design / RSS Export and URL

RSS Export and URL

Author Message

Kjell Inge Sandvik

Wednesday 06 July 2005 5:20:48 am

Hello people!

Today's problem:
I have a RSS-feed that I want to import into a PHP-script. The problem is that the script cant't find the feed! What exactly is the correct URL to a RSS-feed to use?

I can access it from the browser: http://www.kitest.com/ezpublish/index.php/Case/rss/feed/aktiviteter but the PHP-script can't.

Sandvik Web & Data

Łukasz Serwatka

Thursday 07 July 2005 1:17:30 am

Try change your feed url to rss/feed/aktiviteter.xml and use

// Open and read RSS url
$fid = fopen( $rssSource, 'r' ); 

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kjell Inge Sandvik

Thursday 07 July 2005 1:53:02 am

Lukasz:

Thank you very much for you answer, but I still can't connect to the feed from my php-script.

This is the URL I'm using.
http://www.kitest.com/ezpublish/index.php/Case/rss/feed/aktiviteter.xml

Sandvik Web & Data

Łukasz Serwatka

Thursday 07 July 2005 1:59:23 am

Hmm, I have 404 (URL Not Found) error whan I accessing this URL
http://www.kitest.com/ezpublish/index.php/Case/rss/feed/aktiviteter.xml

Do you use Firewall or forwarding?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kjell Inge Sandvik

Thursday 07 July 2005 2:31:27 am

No.

Please see this thread in context with my latest one: RSS Export (http://ez.no/community/forum/setup_design/rss_export).

What I'm trying to do, is to export a RSS-feed containing activities. I have made a class with dates, information, title and a couple of other attributes.

The idea behind this, is to process the feed in a php-script that will produce a activity-calendar as a (template) file. The file will then be imported into pagelayout.tpl.

Sandvik Web & Data

Marco Zinn

Saturday 09 July 2005 3:34:43 am

? I don't get the point in what you are trying to do?
Are you creating the activities in on ezPublish installation and want to show the calendar in some other installation?
If you use one installation, what do you do all this RSS export and import things?

Marco
http://www.hyperroad-design.com

Kjell Inge Sandvik

Monday 11 July 2005 2:29:12 am

Hello Marco and thank you for answering.

I was trying to make a calendar with clickable dates for that day's events. I have now solved the problems by using a great contribution here on the community (Agenda).

But; the main idea behind it all was to make a way of process output data from eZ (in this case RSS) in a extern PHP-script. The script should produce a templatefile, which then was imported in for example pagelayout.tpl

Sandvik Web & Data

eZ debug

Timing: Jan 21 2025 02:40:29
Script start
Timing: Jan 21 2025 02:40:29
Module start 'content'
Timing: Jan 21 2025 02:40:29
Module end 'content'
Timing: Jan 21 2025 02:40:29
Script end

Main resources:

Total runtime0.1849 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.6094180.8438
Module start 'content' 0.00710.0043 768.4531101.9609
Module end 'content' 0.01140.1733 870.4141530.1250
Script end 0.1847  1,400.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00361.9371200.0002
Check MTime0.00140.7399200.0001
Mysql Total
Database connection0.00080.424010.0008
Mysqli_queries0.137774.46011410.0010
Looping result0.00160.84961390.0000
Template Total0.173093.610.1730
Template load0.00090.488410.0009
Template processing0.172193.095710.1721
Override
Cache load0.00060.341810.0006
Sytem overhead
Fetch class attribute can translate value0.00090.496510.0009
XML
Image XML parsing0.00030.161710.0003
General
dbfile0.00231.2462200.0001
String conversion0.00000.002530.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