[ic] [perl] comptabilty issues calling html file

Stefan Hornburg racke at linuxia.de
Fri Feb 13 16:10:17 EST 2004


On Fri, 13 Feb 2004 15:48:25 -0500
"Sam Batschelet" <batschelet at exactasphere.com> wrote:

> I have a piece of code that creates a RSS news feed table and I am
> trying to find a way for interchange to print that file's HTML into an
> interchange page's table.
> 
> If the file is called RSS.html normal perl should work like this but
> with interchange's safe.pm this is not true.  My question is can you
> achieve this with interchange.  Any ideas on a good way to go about this
> would be appreciated.
> 
> *********************************************************  
> 
> print "Content-type: text/html", "\n\n";	# MIME header.
> 
> open(HTMLFILE, " RSS.html ") || die "
>   <center><H3>Sorry, I cannot open HTML RSS.</H3></center>";
> while (read(HTMLFILE, $buffer, 16384))  #Print the Poll HTML file
> {
>     print $buffer;
> }
> close(HTMLFILE);
> 
> *********************************************************  

I'm unsure what really want to achieve, but maybe the [file] tag is what 
you need ...

	Racke


-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team



More information about the interchange-users mailing list