Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

Re: [ic] can I include another cgi script within [ic]?



On Mon, Jul 23, 2001 at 09:19:45PM -0400, Tim Watts wrote:
> Hi All!
> 
> I've serched the archives but with no simple answer, has anyone found a
> simple solution to include cgi output from other scripts into a [ic] page?
> 
> We are running a script for reviews of products.
> 
> It does everything needed, but I would like to run portions of it within
> interchange, namely to display the average ratings, then a link to the
> reviews script to read them.
> 
> How can I include this within [ic]?
> 
> Is there a way to do something similar to a ssi call of the script?


You need to untrap it or make it a GlobalSub

[mysub]
my $out=`/bin/date`;
[/mysub]

or you can make ic the ssi call depending on your server.
That's usually harder because you're interleaving headers
and output.

Wouldn't it be easier to just suck the reviews out of a database 
as part of ic?

That's three ways as fast as I can type.  :-)(



> 
> Thanks in advance for any help!!
> 
> Tim 
> 
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users

-- 

Christopher F. Miller, Publisher                               cfm@maine.com
MaineStreet Communications, Inc           208 Portland Road, Gray, ME  04039
1.207.657.5078                                         http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: