Posted under Development by jason on Wednesday July 19 2000 @ 11:00PM EDT
As I am intergrating everything to run through a template parsing function now, I ran into a problem when trying to include the backend rdf php scripts that 0.3.0 uses; specifically, the ones created by Kalle Kiviaho. (is http://swamp.chl.chalmers.se/backends/ down?)
The problem is that I need to get the results from these scripts, and stuff them into an array for parsing them through the template. While this method works just fine, these scripts use an include() which makes it impossible to put results into a string without it actually returning the include when it's called. In other words, the results get printed before it can be run through the template.
Unless there is an easy way around this, there are two possibilities which I can try. Instead of giving phpWebLog the path to the php script, you can enter the site's url to the RDF/RSS. From there, we can parse away. The problem is the lack of RDF/RSS file standard, so it would be tough to write a function that can retrive ANY RDF/RSS file. If this is the better route to take, I would start with it only being able to parse xml files using the Netscape RSS .01 DTD.
The other method would be have support for fetching from a predetermined list of websites. So under blocks, for RDF importing, you would what sites you could retrieve from. I am not too fond of this limited approach btw.
This section will be placed on hold until a solution is thunk up.
Excuse my english, I'm from NC too!
|