Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ASP

Forums

 

 

ModPerl asp RSS feed   Index | Next | Previous | View Threaded


ian.cass at mblox

Jan 19, 2003, 11:27 AM

Post #1 of 2 (660 views)
Permalink
Forums

Has anyone come across forum software written in Apache::ASP, or has anyone
got any experience of packages that are easily integrated?

--
Ian Cass


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl


josh at chamas

Jan 19, 2003, 4:13 PM

Post #2 of 2 (628 views)
Permalink
Re: Forums [In reply to]

Ian Cass wrote:
> Has anyone come across forum software written in Apache::ASP, or has anyone
> got any experience of packages that are easily integrated?
>

If there are not any already that work with Apache::ASP directly,
its easy to embed or convert CGI scripts to Apache::ASP ones, just
wrap the script with <% %>, or include it directly with a command
like

<% do "forum.pl"; %>

If you wanted to capture & post process the output you might also
try something like:

my $output = $Response->TrapInclude('cgiwrap.inc', 'forum.pl');
$$output =~ ... # post process it
print $$output;

and then cgiwrap.inc could look like:

<%
my $file = shift;
do $file;
%>

Another simpler way to invoke this might be:

my $output = $Response->TrapInclude(\"do forum.pl");

The only reason to capture & post process the output is if you want
to preserve the original script, but allow for it to be embeded
in an ASP page, so that you might strip things like <html> & <body>
tags.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder phone:925-552-0128
Chamas Enterprises Inc. http://www.chamas.com
NodeWorks Link Checking http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl

ModPerl asp RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.