Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

using SSI within a dynamic directory..

(Page 2 of 2)
> >
Quote Reply
Re: [yogi] using SSI within a dynamic directory.. In reply to
Thats strange...when I was testing I couldn't get that to work at all even in a seperate script...going to test....
Quote Reply
Re: [yogi] using SSI within a dynamic directory.. In reply to
Code:
my $ref = sub { print `/path/to/gforum.cgi do=user_signup`; }; &$ref;

That code hangs, I needed to use:

Code:
my $ref = sub { print `perl /path/to/gforum.cgi do=user_signup`; }; &$ref;

...however it just took me to the main category list.
Quote Reply
Re: [Paul] using SSI within a dynamic directory.. In reply to
Now that's strange, it works perfectly here....

Plus, your code, with the perl thing included also displays the user signup page.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] using SSI within a dynamic directory.. In reply to
This one _does_ work for me...

Code:
my $ref = sub {
$ENV{QUERY_STRING} = 'do=user_signup';
print `perl /apache/cgi-bin/forum/gforum.cgi`;
};

$ref->();

(Im using WinXP)
Quote Reply
Re: [Paul] using SSI within a dynamic directory.. In reply to
That also works for the global (I just tested it). You might have to store $ENV{QUERY_STRING} temporarily somewhere to avoid confusion. Plus the script should not send its headers (but that's the problem of the other cgi-script...).

Code:
sub {
my $env = $ENV{QUERY_STRING;
$ENV{QUERY_STRING} = 'do=user_signup'
print `perl /apache/cgi-bin/forum/gforum.cgi`;
$ENV{QUERY_STRING} = $env;
}

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] using SSI within a dynamic directory.. In reply to
You could probably just do:

local $ENV{QUERY_STRING} = 'do=user_signup';

...not tested though.

Last edited by:

Paul: Aug 2, 2002, 7:01 AM
> >