Re: mod_perl

2000-08-03 Thread Tobias Hoellrich
Yusun, your questions don't get better if you post them over and over again. Can you answer the following questions below: 1.) Have you read through the guide at http://perl.apache.org/guide/ ? Millions of people have spent thousands of hours compiling the information in there. I'm sure you will

Shouldn't we escape this regexp?

2000-08-01 Thread Tobias Hoellrich
On one of my web server I ran several times into an issue where I received an internal server error in Registry.pm under certain conditions. The error_log says: [Tue Aug 1 12:15:53 2000] [error] //VJ++.pdf$/: nested *?+ in regexp at /usr/local2/lib/perl5/site_perl/5.6.0/sun4-solaris/Apache/Regis

Re: Apache::ASP

2000-07-27 Thread Tobias Hoellrich
Here comes your herp (sounds almost like herpes to me ... shudder): What happens if you actually put form.asp into /asp/ as in http://oklahoma/asp/form.asp Tobias PS: It would have been enough to tell the list that you saw the source, instead of posting a screenshot ... At 05:25 PM 7/27/00

Re: Apache::Request::upload

2000-07-14 Thread Tobias Hoellrich
At 10:04 AM 7/14/00 -0600, Dave Thomas wrote: >Hello, > >Question: Why does the Apache::Request object not return an Upload >object when >there was a file sent. > > Backgroud: I have pulled the sample script from the Apache::Request >distribution and >used that in my handler, this instance w

Re: Apache::Upload ?

2000-06-27 Thread Tobias Hoellrich
Take a look at Apache::Request which is what you want. The documentation for Apache::Upload is contained in the 'perldoc Apache::Request' . Hope this helps Tobias At 02:17 PM 6/27/00 -0600, Casey Bristow wrote: > > howdy. > > one of the requirement of the system that I'm developing, is the abil

Re: cleaning old Apache::Session's

2000-06-02 Thread Tobias Hoellrich
f the session row. Makes sense? Tobias At 10:09 AM 6/2/00 -0400, Niral Trivedi wrote: >Tobias, > >What do you exactly mean by line 'Internally the session will expire >after 30 minutes.'??? > >Is it something internal to Apache::Session or you have it programmed o

Re: cleaning old Apache::Session's

2000-06-01 Thread Tobias Hoellrich
At 09:26 AM 6/2/00 +1000, Adam Cassar wrote: >I was wondering how people are clearing out old Apache::Session's > >No timestamp is used on the fields used by Apache::Session, so how do >we clear the old sessions? > >I am not talking about the delete() method to remove a session, as that >presumes

[TOOT]: Dyslectics untie!

2000-05-12 Thread Tobias Hoellrich
For one of our web services we ask people for a valid email-address to access the service. Once the address passes an initial RFC822 check we send a message to the user which contains an activation link. Once the user receives the message and clicks on the link we consider the email address valid

Re: 100% sessions?

2000-05-09 Thread Tobias Hoellrich
At 01:40 AM 5/10/00 +0200, harm wrote: > ... >It doesn`t clear the referer header! >Any suggestions for better redirection strategies? Generate a html file >whith qualifies as ugly ;-) > > Then I guess our solution qualifies as ugly - you can spit out as many 302's as you want, it won't increase

Re: 100% sessions?

2000-05-09 Thread Tobias Hoellrich
Rule #1: Never ever link directly to a remote site, but do it through a redirector which makes sure that nothing that doesn't have to be sent to the remote site gets sent to it. We use a handler that "listens" on /redirect turns urls like: /redirect/http://www.disney.com to the obvious

Re: 100% sessions?

2000-05-09 Thread Tobias Hoellrich
Jeffrey, At 02:32 PM 5/9/00 -0700, Jeffrey W. Baker wrote: >Why is the session ID invalid just because they left for a week? Ask them >to authenticate again and take them right back to whatever they were >doing. > >On some sites bookmarking the URL with the session ID embedded is the >optimal be

Re: 100% sessions?

2000-05-09 Thread Tobias Hoellrich
Tom, At 02:02 PM 5/9/00 -0700, Tom Mornini wrote: >That is the tricky part. :-) > >Here's the sneaky way to handle it: Put the Session ID at the beginning of >the URI. If a request comes in with a Session ID, then strip it out of >$r->urii. If a request comes in without one, redirect them to the

Re: 100% sessions?

2000-05-09 Thread Tobias Hoellrich
A mod_rewrite recipe wouldn't help you a lot, because you actually need to parse the HTML, find all HREFs (and FORM actions) which point to your local site and add the session information to these. If you have a module which does process all the output from your handlers then this would be a good

Re: speed up/load balancing of session-based sites

2000-05-07 Thread Tobias Hoellrich
At 05:43 PM 5/7/00 -0400, Greg Stark wrote: >I've written some pretty heavy database driven sites that do some pretty >complicated things and I've *never* found it really necessary to have a server >side session database. In theory you might find it convenient to cache big >complex data structures

"headless" operation

2000-05-02 Thread Tobias Hoellrich
r headless responses (XML probably) or HTML output. Has anybody done somthing like this before? Are there any pointers you mod_perl'ers want to share with me? Thanks in advance Tobias Hoellrich, Adobe Systems

Re: Apache::Request->new($r) does NOT work, why?

2000-04-30 Thread Tobias Hoellrich
At 02:04 PM 4/30/00 -0400, Sam Carleton wrote: >Tobias, > >The new is blowing up on me. This is the error message: > >null: Can't locate object method "new" via package "Apache::Request" Try installing it :-) $ perl -MCPAN -e shell cpan> install Apache::Request Tobias PS: Pl

Re: perl code to handle a multipart/form-data POST

2000-04-30 Thread Tobias Hoellrich
At 01:49 PM 4/30/00 -0400, Sam Carleton wrote: > >Tobias, > >I am looking into it right now, but you might be able to save me a lot >of time. I want to display the name/values from the HTML form. How >would I go about enumerating through the @params to do this? > >Sam How bout this: package Ap

Re: where to find info on the Apache request object

2000-04-30 Thread Tobias Hoellrich
At 01:34 PM 4/30/00 -0400, Sam Carleton wrote: >I am learning perl/mod_perl right now and have some questions. I would >like to see all the functions that I can call on the Apache request >object. Can anyone point me to some documentation? I didn't see a >listing in "Writing Apache Modules in P

Re: perl code to handle a multipart/form-data POST

2000-04-30 Thread Tobias Hoellrich
At 01:29 PM 4/30/00 -0400, Sam Carleton wrote: > > Ok, So cgi-lib.pl isn't the greatest in the world, but it did help me > get a big farther in my project:) Now I need something that works. I > have "Writing Apache Modules with Perl and C", but have not read too > deep into it and time is ver

[OOT] Re: ANNOUNCE: IPO::Shareable [Re: may be an off topic question..]

2000-04-06 Thread Tobias Hoellrich
You failed to mention that this module requires: IPO::BuzzWords qw(:xml :b2b :asp :wha) Angel::Investor and Location::PaloAlto qw(:noMatterWhatItCosts) Thanks Perrin Tobias At 03:15 PM 4/6/00 -0700, Perrin Harkins wrote: >=head1 NAME > >IPO::Shareable - Perl extens

Re: How to keep "Connection: Keep-Alive"

2000-03-31 Thread Tobias Hoellrich
At 06:40 AM 4/1/00 +0800, Jaime Teng wrote: >nope. im not referring to database connection. > >im referring to the HTTP's "Connection: Keep-Alive" >wherein the browser and the server maintains a socket >connection even after the perl script finished execution. > >jaime > Keep-Alive is a function

Re: What's the benefits of using XML ?

2000-02-10 Thread Tobias Hoellrich
At 07:00 PM 2/10/00 -0800, Perrin Harkins wrote: > [ ... interesting XML application analysis deleted ... ] > >Looks I came up with some reasons after all. So go ahead and use it if >you see a fit. Just don't believe anything that a person with a product >to sell tells you about XML. Or anyth

Re: Pattern Matching kills loops?

2000-02-08 Thread Tobias Hoellrich
Whooops, Steve, I guess you should check whether your match is actually successful as in: if (/(\d+):([0-9,]*):(.*)/) { $id = $1; $temp = $2; $name = $3; $CAT{$id}{"name"} = $name; } otherwise you get whatever $1/$2/$3 happen to be before the match.

RE: perl -V ??

2000-01-11 Thread Tobias Hoellrich
This one does the "funky" thing :-) foreach ("Digest::MD5","Crypt::DES",Crypt::CBC"); eval "use $_;"; if ($@) { print "Can't locate module $_\n"; } else { print "Found module $_\n"; } } Tobias At 04:20 PM 1/11/00 -0500, Berghold, Peter wrote: > > I saw a code sn

Read query string on POST request?

1999-12-16 Thread Tobias Hoellrich
merge it with the Query String args. I decided to go for solution 2. Question: Does this make sense? Should I have done it differently? Will I lose this ability in a future version of Apache::Request (some comments in Request.pm seem to indicate that)? Thanks in advance Tobias Hoellrich, Adobe

Re: sh and mod_perl

1999-11-16 Thread Tobias Hoellrich
Now, where did I put my sh2pl converter ;-) Tobias At 03:53 PM 11/15/99 +, you wrote: > > Hi All! > > I just configured mod_perl and i need to include (execute) som shell > scripts that i have. > Those scripts check some things and they are going actually to create > the html outpu

Re: Apache::SpeedLimit and problems with IPC::Shareable

1999-11-10 Thread Tobias Hoellrich
This sounds an awful lot like the problem I ran into when using Apache::Session's tie in an eval'ed context. See this message: http://x31.deja.com/getdoc.xp?AN=536753692&CONTEXT=940379169.1854472193&hitn um=1 and http://www.geocrawler.com/archives/3/182/1999/10/0/2767892/ I assume you're usin

RE: Trying not to re-invent the wheel

1999-11-10 Thread Tobias Hoellrich
I don't know, if you have to stick to the tags as described below, but if you don't have to you may want to take a look at a custom Apache::SSI subclass which can do all this stuff for you and no perl-based HTML parsing is involved: Tobias At 10:10 AM 11/10/99 -0800, Ian Mahuron wrote:

Re: Using Apache::Util outside mod_perl

1999-11-01 Thread Tobias Hoellrich
Ken, no - mod_perl as glue to the Apache API is required. If you're not running under mod_perl these won't work for you and you have to use CGI.pm's or URI's perl only functions. At 12:19 PM 11/1/99 -0500, Ken Y. Clark wrote: >On Mon, 1 Nov 1999, John Siracusa wrote: > >> Can I use the Apache::

Re: "DigExt" in user-agent hammering my site

1999-10-28 Thread Tobias Hoellrich
Randal, this is definitely Internet Explorer 5. I've seen the same several times on my site and here's how it works: In IE5 you can make web pages available for offline reading, you just need to go to Favorites/Add to Favorites ... and select the number of levels you want to download. IE5 will ha

Re: Hanging process: detection and determination (was Re: Runaway processes)

1999-10-22 Thread Tobias Hoellrich
The reason why the stop button does not stop the script lies in the fact that you're script does not produce any output while it is running. SIGPIPE is only raised when your script tries to write to a closed (STOPed) connection. No output from your script = no SIGPIPE! Tobias At 07:29 PM 10/22/9

Re: Runaway processes

1999-10-21 Thread Tobias Hoellrich
And yet another one (which I used for one project): Detach the process from the Apache cgi (no don't use fork inside your script) and have the process do its work in the background outputting progress information into a know location. Have your web-page reload every minute or less, read the progre

Re: Apache::Session and File Upload (Was: Apache::Session hangs script)

1999-10-21 Thread Tobias Hoellrich
Kip, I think I mentioned this yesterday in an private email message already. I had the same problem with Apache::Session 1.03 in my environment. For some obscure reason, my tied %session didn't go out of scope and was never "untied" at the end of one request. This results in a situation where Ap

eval'ed Apache::Session tie panics with POPSTACK?

1999-10-19 Thread Tobias Hoellrich
I wanted to trap non-existant session-id's by bracketing the tie %{$href}, 'Apache::Session::DBI', $id, { DataSource => 'dbi:mysql:sessions', UserName => 'db_user', Password => 'db_passwd' }; with an eval { }; block. Once I've done this and send a non-existant session-id I ge

RE: hanging processes

1999-10-18 Thread Tobias Hoellrich
Marc, this is mighty weird. truss usually reports the last call the application made, if it is really hanging (poll() and select() and that kind of stuff). I've never seen just printing "nothing". If you're on Solaris, have you tried the /usr/proc/bin stuff. "pflags [pid]", "pstack [pid]" ? Tobi

Re: ISP's that support mod_perl?

1999-10-07 Thread Tobias Hoellrich
http://perl.apache.org/isp.html Hope this helps Tobias At 02:05 PM 10/7/99 -0700, Clifford Hammerschmidt wrote: >Hi all, > > Does anyone know where I can get a list of ISP's that support mod_perl? >Any recomendations? What kind of concerns/questions should I have when >asking about ISP's supp

Re: CGI.pm not maintaing values..

1999-01-03 Thread Tobias Hoellrich
You read through the guide? Well, you must have missed this section :-) http://perl.apache.org/guide/porting.html#Sometimes_it_Works_Sometimes_it_ Tobias At 10:54 AM 11/5/99 -0800, you wrote: >Hi, > >I've read through the guide, and tried to search through the list, but >CGI.pm is a pretty comm