Thanks.
yes... I thought so..
but the second way I was trying is :
$r->uri($new_uri);
$r->headers_out->add('Location' => ($new_uri));
return Apache2::Const::DECLINED;
Thanks anyways..
nitin
-Origi
Scott Penrose wrote:
> Now it seems obvious, but I can't find a reference to get the real
> directory of a URI.
> Examples I have found on CPAN look something like this...
>
> my $uri = $r->uri;
> $uri =~ s|[^/]+$||;
> my $dir = $r->document_root . $uri;
>
> The problem with the ab
janbro wrote:
> ... Now I'd like to get an output by calling the test.pl thru
> localhost/perl/test.pl but all I get is the source code it
http://perl.apache.org/maillist/modperl.html#Searchable_Archives
http://aspn.activestate.com/ASPN/Mail/Message/modperl/2733087
HTH,
David
Now it seems obvious, but I can't find a reference to get the real
directory of a URI.
Examples I have found on CPAN look something like this...
my $uri = $r->uri;
$uri =~ s|[^/]+$||;
my $dir = $r->document_root . $uri;
The problem with the above is that it does not take into accou
Hi List,
I'm trying to get my feet wet on Perl, so please forgive
my questions.
I've written my first test.pl file with
#!/usr/bin/perl
print ("Hello World\n");
I get an output as expected when started thru command line.
I installed mod_perl (it runs without any prob.) by getting
a mod_perl.so