Tom Gazzini wrote:
I have a perl function which, amongst other things, needs to redirect
the request to another page.
It also needs to pass all the query parameters of the original request
(both GET and POST) to the redirected page, and also add one parameter
of it's own (an error message).
S
| To: <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: Questio
I have a perl function which, amongst other things, needs to redirect
the request to another page.
It also needs to pass all the query parameters of the original request
(both GET and POST) to the redirected page, and also add one parameter
of it's own (an error message).
Sounds simple e
George Valpak wrote:
Sounds like you need 2 apaches, on separate physical servers -
I agree, the proxy approach is your best choice, and it gives other
performance benefits as well, described in the documentation.
- Perrin
s you all had sent me.
>
>I shall look for at the POE mail lists.
>
>with thanks
>rsr.
>
>-Original Message-
>From: Perrin Harkins [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 07, 2003 10:08 PM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
erver.
I will probe all the suggestions you all had sent me.
I shall look for at the POE mail lists.
with thanks
rsr.
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 10:08 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re:
> I would like to know any such standalone servers that could
> process the perl requests offline (taking requests from a file or
> queue end).
>
> I definitely would like to get fancier as my requirement is
> immediate. Upon finding a server that could process the requests
> away from
> > I definitely would like to get fancier as my requirement is immediate.
> > Upon finding a server that could process the requests away from mod_perl, I
> > most probably would modify mod_perl to communicate with the standalone
> > servers via sockets (and maybe maintain persistence).
Don't.
On Tue, 7 Jan 2003, Chandrasekhar R S wrote:
> Date: Tue, 7 Jan 2003 21:38:57 +0530
> From: Chandrasekhar R S <[EMAIL PROTECTED]>
> To: 'Ken Y. Clark' <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: RE: Query
>
> Hello Ken,
> You gav
Chandrasekhar R S wrote:
I am having a requirement as follows :
I need to execute/interpret the perl requests away from mod_perl.
Can you explain why you want to do this? Your stated requirement is
already met by CGI, FastCGI, SpeedyCGI, and a bunch of other things, but
we can't really reco
Message-
From: Ken Y. Clark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 9:02 PM
To: Chandrasekhar R S
Cc: [EMAIL PROTECTED]
Subject: Re: Query
On Tue, 7 Jan 2003, Chandrasekhar R S wrote:
> Date: Tue, 7 Jan 2003 12:52:27 +0530
> From: Chandrasekhar R S <[EMAIL PROTECT
On Tue, 7 Jan 2003, Chandrasekhar R S wrote:
> Date: Tue, 7 Jan 2003 12:52:27 +0530
> From: Chandrasekhar R S <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Query
>
> I am having a requirement as follows :
>
> I need to execute/interpret the perl requ
I am having a requirement as follows :
I need to execute/interpret the perl requests away from mod_perl. Like,
could mod_perl delegate the execution/interpretation of perl scripts to some
other process. In the end, mod_perl would be used just to accept requests
from the Web Server, but p
nfo to the module from
...
PerlHandler Module
Why does it not do this for /?
Thanks for the help,
Wes
> -Original Message-
> From: giorgos zervas [mailto:[EMAIL PROTECTED]]
> Sent: 04 July 2002 15:28
> To: Wes Cravens
> Cc: modperl
> Subject: Re:
On Thu, 4 Jul 2002, Wes Cravens wrote:
> url: 'www.host/' returns '/'
> url: 'www.host/debug' returns '' when I was expecting '/debug'
does a file or directory named 'debug' exist in your document root?
If so, it's normal. It is also possible that you are doing an error
I made many times :) You
hi,
apache uses a simple technique for determining the path_info. it starts
at your document root and looks for the directory you specified in your
URI. it continues to go deeper in the directory structure until it
encounters a directory(or file) that doesn't exist. when this happens
the the
Hello all,
This is perhaps an apahce uri translation problem but:
I am having a path_info problem...
Synopsis.
SetHandler perl-script
PerlHandler Module
Module.pm returns $r->path_info() in html to client.
url: 'www.host/' returns '/'
url: 'www.host/debug' returns '' when I
In article <[EMAIL PROTECTED]>,
Perrin Harkins <[EMAIL PROTECTED]> wrote:
> If you actually want to free the memory, you need to undef it. The
> untie prevents it from persisting, but the memory stays allocated
> unless you undef.
OK, I think I'm probably handling this properly then, after a
Hi there,
On Wed, 13 Mar 2002, Parag R Naik wrote:
> We have installed perl 5.6
Make sure you get 5.6.1 not 5.6.0 which is buggy.
73,
Ged.
Andrew Green wrote:
> In particular, I'm
> looking for reassurance that passing a reference to a hash doesn't copy
> the hash itself into memory in any way, and that the memory overhead is
> only as large as the largest $item.
That's basically correct, but some dbm implementations will use their
Parag R Naik wrote:
> We have installed perl 5.6 but we are
> not able to figure out how to instruct apache to use that version of
> perl(5.6
You have to re-compile mod_perl.
> Is the "our" directive used in some of files new to perl 5.6 because we
> could not find that directive in the most
The we are not able to bring the site up and running on linux version
6.2 with perl 5.005 , mod_perl 1.21 , I think the problem is the version
of the perl that we are using . We have installed perl 5.6 but we are
not able to figure out how to instruct apache to use that version of
perl(5.6) .
Morning all,
Forgive the naivete, but I'm having trouble wrapping my mind around the
memory implications of using tied hashes, and I haven't found anything in
the Camel book or the Guide to clarify the situation for me.
A fair amount of my Registry scripts need to use code not unlike the
followi
Garrett Goebel wrote:
>
> From: Paul [mailto:[EMAIL PROTECTED]]
> >
> > Anybody know offhand *why* my() lexicals are supposedly faster?
>
> Because a dynamic variable allocates a "new" value at runtime which occludes
> the global value until it's scope expires. In contrast, a lexical variable
>
Title: RE: Very[OT]:Technical query re: scratchpad lookups for my() vars
From: Paul [mailto:[EMAIL PROTECTED]]
>
> Anybody know offhand *why* my() lexicals are supposedly faster?
Because a dynamic variable allocates a "new" value at runtime which occludes the global value
Many thanks to everyone, Malcolm in particular, for humoring my
curiosity and assisting my esoteric research.
Hope it helped someone else, too, and sorry for cluttering up the
board.
But it *dod* say it was Very[OT]. ;o)
Paul
--- Malcolm Beattie <[EMAIL PROTECTED]> wrote:
> Paul writes:
> >
>
Paul wrote:
> None of this is critical for anything I'm doing right now, but I'm a
> detail hound. I want to *understand* it, so that in the future I can
> make intelligent decisions about what would be a "better" way to write
> any given algorithm, without just relying on popular wisdom and "urba
Paul wrote:
> --- Robert Landrum <[EMAIL PROTECTED]> wrote:
> > I could be wrong, but as I recall, when your program enters a scope,
> > perl immediatly identifies the the scratchpad to use. Then, it need
> > only search backwards up the tree of scratchpads to find the variable
> > "$x", which is
Paul writes:
>
> --- Brian Ingerson <[EMAIL PROTECTED]> wrote:
> > Garrett Goebel wrote:
> > >
> > > From: Paul [mailto:[EMAIL PROTECTED]]
> > > >
> > > > Anybody know offhand *why* my() lexicals are supposedly faster?
>
>
>
> > Yes this is OT, but I'll contribute to the problem as well..
--- Brian Ingerson <[EMAIL PROTECTED]> wrote:
> Garrett Goebel wrote:
> >
> > From: Paul [mailto:[EMAIL PROTECTED]]
> > >
> > > Anybody know offhand *why* my() lexicals are supposedly faster?
> Yes this is OT, but I'll contribute to the problem as well...
>
> My coworker Gisle Aas (maybe
--- Elizabeth Mattijsen <[EMAIL PROTECTED]> wrote:
> At 03:52 PM 3/14/01 -0800, Paul wrote:
> But nothing about the structural/algorithmic mechanics. :<
>
> From the perlsub docs:
>
> Variables declared with my are not part of any package and are
> therefore
> never fully qualified with the p
At 03:52 PM 3/14/01 -0800, Paul wrote:
But nothing about the structural/algorithmic mechanics. :<
From the perlsub docs:
Variables declared with my are not part of any package and are therefore
never fully qualified with the package name. In particular, you're not
allowed to try to make a pac
--- Robert Landrum <[EMAIL PROTECTED]> wrote:
> I could be wrong, but as I recall, when your program enters a scope,
> perl immediatly identifies the the scratchpad to use. Then, it need
> only search backwards up the tree of scratchpads to find the variable
> "$x", which is faster than iterat
I could be wrong, but as I recall, when your program enters a scope,
perl immediatly identifies the the scratchpad to use. Then, it need
only search backwards up the tree of scratchpads to find the variable
"$x", which is faster than iterating through the STHASH looking for a
localized or glo
Anybody know offhand *why* my() lexicals are supposedly faster?
If they're stored on a scratchpad for the scope, which is an array,
(technically a stack of them to accommodate recursion,) then exactly
how does Perl go about finding which data location you mean when you
say $x for a lexical? $::x
Thanks but it's nothing to do with global variables I don't think
eg.
my $query = new CGI;
print $query->path_info();
works when a path info has been added to the URL but returns random
results when there isn't one.
Andrew
In message <[EMAIL PROTECTED]>,
Matt Se
;
>
> That all worked fine until i converted to mod_perl. I did change
> $ENV{'PATH_INFO'} to the $query->path_info() code and usually works fine
> until there are multiple requests between wap and html.
>
> from what i can tell if you access the script with /wap/ it always
Hi, could someone PLEASE help!
I am trying to write a script that if accessed through
http://server/script/
would produce HTML, where-as:
http://server/script/wap/
would produce WML.
That all worked fine until i converted to mod_perl. I did change
$ENV{'PATH_INFO'} to
Hi all ,
I need to parse different url's to get the details of the medical sites and
put it into my database and generate
the newsite , I am using perl for getting the pages and parsing the data in
all the pages and this seems to be semi manual kinda
stuff, i need to see the page and then write t
Vincent Apesa ([EMAIL PROTECTED]) said something to this effect on 01/23/2001:
> Hello all,
> I'm trying to modify the query string from the client before sending it
> off again. I would like to do something like so:
>
> http://www.xyz.com?one=1 and modify the uri to
>
Hello all,
I'm trying to modify the query string from the client before sending it
off again. I would like to do something like so:
http://www.xyz.com?one=1 and modify the uri to
http://www.xyz.com?one=2
the problem is I'm not sure how to reference values in the query string. I
>
>I may be wrong, but I bet you have to do this instead:
>
But you aren't :)
>
> $r->uri("/articles/index.html");
> $r->args("id=$id");
>
>By the time the apache-request object has been created, args are
>handled in a separate slot.
>
That worked. Maybe this should be documented somewhere
= ($uri =~ m|^/articles/(.*?)/|);
Ajay> my $newuri = $r->document_root . "/articles/index.html";
Ajay> my $uriobj = $r->parsed_uri;
Ajay> $uriobj->query("id=$id");
Ajay> $r->uri($newuri);
Ajay> return OK;
Ajay> }
I may be wrong,
fy the following
/articles/10/index.html => /articles/index.html?id=10
So this is my attempt:
...
my ($id) = ($uri =~ m|^/articles/(.*?)/|);
my $newuri = $r->document_root . "/articles/index.html";
my $uriobj = $r->parsed_uri;
$uriobj->query("id=$id
This maybe be repeated becuase I sent the first message via
Geo Crawlere and don't know how long they are going to take
to review the message. Sorry if it comes in twice.
I am writing a simple PerlTransHandler that is going to change
the request into another with query string.
The followi
interestingly enough, that is not
my problem. all the hacks i've been doing are just to read the query
string on GET's. i don't like my solution, but i'll be releasing these
packages soon under an open-source agreement, so maybe more eyes on the
problem will help produce a better/correct solution.
ky
At 11:52 AM 12/22/99 , Ken Y. Clark wrote:
>so it now works, but i feel kinda dirty. and here's the last bit of
>strangeness: i have another page that is generated in the same manner
>that works just fine. the only difference is that the perl sub generates
>a form that is *not* enctype="multip
i'm currently converting several CGI scripts into mod_perl modules, and
i'm having difficulty in one particular situation reading the variable
input (i.e., query string on a GET or STDIN on POST). quick background: i
had a PerlHandler on the end of this request for a while, accepting
On Thu, 16 Dec 1999, Tobias Hoellrich wrote:
> I pass a session id in the query string between invocations for my
> current project (only if the client does not support Cookies). My main
> handler is also responsible for creating an Apache::Request object right
> at the beginnig of
I pass a session id in the query string between invocations for my
current project (only if the client does not support Cookies). My main
handler is also responsible for creating an Apache::Request object right
at the beginnig of the handler invocation. sub components rely on the
information
l Message--
From: raptor <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]<[EMAIL PROTECTED]>
Sent: December 2, 1999 8:47:35 PM GMT
Subject: Query/Parse/Format/Display ?
hi,
I want to make the following :
1. Query a site ?
2. Get the results of the query in my script (we are still in Apa
>> I want to make the following :
>> 1. Query a site ?
Send an HTTP GET.
>> 2. Get the results of the query in my script (we are still in Apache)
That's where you will get them. You will receive a content representing a
valid HTML document.
>> 3. Exctract the i
> I want to make the following :
> 1. Query a site ?
> 2. Get the results of the query in my script (we are still in Apache)
> 3. Exctract the information I need ?
> 4. Fomat it and send to the browser ?
A simple registry script will do it, I don't see the catch? LWP is you
hi,
I want to make the following :
1. Query a site ?
2. Get the results of the query in my script (we are still in Apache)
3. Exctract the information I need ?
4. Fomat it and send to the browser ?
Does someone made something similar. Example ?
Thanx in advance
=
iVAN
[EMAIL PROTECTED]
==
I guess this isn't exactly the right place, but if anyone knows about
the real world and DBD::Proxy with Apache it's you people...
I have been working with a client who has looked at using Intel
platforms (with Linux cwas the initial alternative platform) as a
backend modperl/Oracle web engine. T
55 matches
Mail list logo