Re: ssi and Perl/CGI

2006-05-15 Thread Chad Perrin
On Mon, May 15, 2006 at 12:07:42AM -0500, Sumo Wrestler (or just ate too much) wrote: > Chad Perrin wrote: > >[...] > >I'm still curious about why exec cgi works for a page generated > >entirely by the CGI script, but not for CGI script output that I want to > >include in the middle of a page of o

Re: ssi and Perl/CGI

2006-05-15 Thread Chad Perrin
On Mon, May 15, 2006 at 08:38:23AM +0200, Bjørge Solli wrote: > > Have you considered trying mod_rewrite? Your host may have it if it runs > apache. > > Try using something like this in your .htaccess-file: > RewriteEngine on > RewriteRule ^$ cgi-bin/foo.pl > > I use this to avoid ugly urls lik

Re: ssi and Perl/CGI

2006-05-15 Thread Sumo Wrestler (or just ate too much)
Chad Perrin wrote: [...] I'm still curious about why exec cgi works for a page generated entirely by the CGI script, but not for CGI script output that I want to include in the middle of a page of otherwise fairly mundane markup. Since that's really the most on-topic part of my question for this

Re: ssi and Perl/CGI

2006-05-14 Thread Bjørge Solli
On Monday 15 May 2006 00:31, Chad Perrin wrote: > I have Perl/CGI scripts whose output I'd like to include in an SHTML > page. For instance, foo.shtml should include output from bar.pl (which > is located in the cgi-bin directory). Server Side Includes (SSI) seem > to be my only option for making

Re: ssi and Perl/CGI

2006-05-14 Thread Chad Perrin
On Sun, May 14, 2006 at 05:00:08PM -0600, Chad Perrin wrote: > On Sun, May 14, 2006 at 06:43:13PM -0400, Ricky Zhou wrote: > > > For your specific problem, try using > > How do I go about passing variables to the script via include virtual > without using cookies, then? My understanding is tha

Re: ssi and Perl/CGI

2006-05-14 Thread Chad Perrin
On Sun, May 14, 2006 at 06:43:13PM -0400, Ricky Zhou wrote: > > > First, some tips for looking into further such problems: > * Check the error log-- the messages are usually pretty descriptive. Unfortunately, I don't have access to the logs. As I mentioned in the original email, it's a cheapo web

Re: ssi and Perl/CGI

2006-05-14 Thread Ricky Zhou
On 5/14/06, Chad Perrin <[EMAIL PROTECTED]> wrote: If, however, I have the markup with which I want to wrap my Perl output defined in foo.shtml, and bar.pl only outputs the stuff that needs to be dynamically generated by the Perl script, I get this output in my browser: [an error occurred