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

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 21 2025 06:03:14
Script start
Timing: Jan 21 2025 06:03:14
Module start 'layout'
Timing: Jan 21 2025 06:03:14
Module start 'content'
Timing: Jan 21 2025 06:03:15
Module end 'content'
Timing: Jan 21 2025 06:03:15
Script end

Main resources:

Total runtime1.7903 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.0234151.1953
Module start 'layout' 0.00710.0054 740.218836.6172
Module start 'content' 0.01241.7768 776.8359658.4609
Module end 'content' 1.78920.0010 1,435.296915.8750
Script end 1.7902  1,451.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.1913160.0002
Check MTime0.00140.0789160.0001
Mysql Total
Database connection0.00110.063810.0011
Mysqli_queries1.716995.9042710.0242
Looping result0.00080.0456690.0000
Template Total1.729196.620.8645
Template load0.00210.116920.0010
Template processing1.727096.464220.8635
Template load and register function0.00020.009110.0002
states
state_id_array0.00290.161710.0029
state_identifier_array0.00200.114420.0010
Override
Cache load0.00180.0989390.0000
Sytem overhead
Fetch class attribute can translate value0.00130.070430.0004
Fetch class attribute name0.00100.0554100.0001
XML
Image XML parsing0.00600.334030.0020
class_abstraction
Instantiating content class attribute0.00000.0013140.0000
General
dbfile0.00790.4405300.0003
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs