VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1 ]
Subject: Using Carpoutput to Pass Feed


Author:
Derek
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 11:12:04 08/02/05 Tue

(I have a background in Java, but am fairly new to php -- so if the answer should be obvious, I apologize.)

I'm trying to integrate Carp into phpwebsite because it is so much more powerful than phpwsrss (the integrated client) and gives much greater control over the output. However, whenever I run the code:

CarpConf('outputformat',2);
CarpShow('http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml');
$THEME['NEWSFEED'] = "<div id=\"news\">$carpoutput</div>";

I don't get any html rendered, except for
<div id="newsfeed"></div>


So, it's evident that the string-passing is working (because otherwise it would get nothing), so I can't figure out why $carpoutput doesn't contain any data from the feed. If I change carpoutput to 0, then the data appears correctly -- except that it renders at the very beginning of the generated HTML (having displayed before the HTML file). Consequently, I have to capture the output and display it at another point in the template, namely {NEWSFEED}. However, for whatever reason, $carpoutput is not displaying properly. I wondered if it wasn't a problem with passing a pointer instead of the data, but don't really know as I'm rather new to php. I tried creating a new String with the $carpoutput data, but php didn't like that much. Any ideas?

TIA,
Derek

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Replies:
Subject Author Date
Re: Using Carpoutput to Pass FeedDerek14:08:26 08/02/05 Tue


Post a message:
This forum requires an account to post.
[ Create Account ]
[ Login ]
[ Contact Forum Admin ]


Forum timezone: GMT-8
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.