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

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

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 works

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 ability

Re: cleaning old Apache::Session's

2000-06-02 Thread Tobias Hoellrich
se? 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 on custom basis or what??? Niral Tobias Hoellrich wrote: At 0

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 that

[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
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

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 same

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

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
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 meta redirect="blah" qualifies as ugly ;-) Then I guess our solution qualifies as ugly - you can spit out as many 302's as you want, it

headless operation

2000-05-02 Thread Tobias Hoellrich
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: 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 very

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

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: Please,

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 of the

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 anything

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

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 output, i

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: !--#ADVERTISMENT id=252 -- Tobias At 10:10 AM

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

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

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 get