eval inside of reval inside of modperl, and $@

2002-07-06 Thread Gerd Kortemeyer
Hi, I might be totally confusing myself, but I do have problems with the $ variable inside of a Safe compartment inside of an Apache modperl module. The following subroutine returns Oops Illegal division by zero ... when called from a standalone program, and No problem when called inside a

Re: Redirect with anchors.

2001-04-08 Thread Gerd Kortemeyer
1) First suggestion: Try $req_rec-header_out("Location" = "intranet.html#anchor_name?action=show"); Seems like that is the order that at least Netscape puts GET-parms and anchors in. 2) If the above does not work, try $req_rec-header_out("Location" =

Re: 1 Billion Bug 1BB - [OT] UNIX timestamp hits 1,000,000,000 thisyear!

2001-03-09 Thread Gerd Kortemeyer
I will open my consulting business on Mon, Jan 18th, 2038. - Gerd. Nigel Hamilton wrote: HI, I'm waiting to see how quickly someone starts the 1 Billion Bug (1BB) Consultancy ... scary. NIge Nigel Hamilton

Re: [JOB] mod_perl programmers needed

2001-03-03 Thread Gerd Kortemeyer
with a permanent internet connection to this (at least cable modem or something) * we would probably contract on an hourly base for telecommuters We would have to work out feasibility and details on an individual base. - Gerd. Gerd Kortemeyer wrote: We need programmers to work on an open source project

[JOB] mod_perl programmers needed

2001-03-02 Thread Gerd Kortemeyer
We need programmers to work on an open source project http://www.lon-capa.org/ - check out "Technical Background" for some - guess what - technical background (slightly outdated). If this looks interesting to you, please send me an email off-the-list. Note that this is a ".edu/.org" rather

Re: Sporadic server errors

2001-02-12 Thread Gerd Kortemeyer
Craig Muth wrote: Here is another error: Modification of a read-only value attempted at /usr/lib/perl5/5.00503/Exporter.pm line 40. BEGIN failed--compilation aborted at /home/sites/your.studentloanfunding.com/your-lib/eAward/GenerateOtherSections.pm line 56. line 56 is: use POSIX

Re: long background tasks

2001-01-25 Thread Gerd Kortemeyer
You need $r-flush(); 1) Send out header 2) Use $r-print(...) to give some "please be patient" message or something 3) End the first chunk of info with "br\n", so that the browser knows enough about the page layout to start page output. 4) Use $r-flush(); 5) Do your long task 6) Produce rest of

Re: long background tasks

2001-01-25 Thread Gerd Kortemeyer
Sorry all, this should have been $r-rflush() - too many r's ... I guess the additional "r" was meant as a reminder that this is a low-level call, and flushing buffers results in a performance hit, and should not be done for no good reason. - Gerd. Gerd Kortemeyer wrote: You nee

Re: Redirecting a multipart/form-data POST request

2001-01-16 Thread Gerd Kortemeyer
I am writing a program that needs to process form data, (here's the kicker) which is sometimes multipart/form-data, then redirect a user to a GET request (which doesn't need to process the form data). I would like to use the standard mechanism for issuing a redirect, for other

Re: How do you run libapreq-0.31/eg/perl/file_upload.pl

2001-01-09 Thread Gerd Kortemeyer
Alexander Farber wrote: However I have this strange problem now: the web page doesn't change until I reload it. (Un)commenting "PerlSendHeader On" doesn't help. The only ways to see the expected results (like the initial empty web form, when entering http://localhost/cgi-perl/file_upload.pl

Re: newbie needs help

2001-01-06 Thread Gerd Kortemeyer
$r-content_type("text/plain"; You are missing a ")" here. Check the error_log of Apache for errors like that. - Gerd. begin:vcard n:Kortemeyer;Gerd tel;fax:(517) 432-2175 tel;work:(517) 432-5468 x-mozilla-html:TRUE url:http://www.lite.msu.edu/kortemeyer/ org:Michigan State University;LITE

Re: where can I get MIME/Head.pm modules

2001-01-06 Thread Gerd Kortemeyer
zhang-sh wrote: Re: where can I get MIME/Head.pm modules www.cpan.org begin:vcard n:Kortemeyer;Gerd tel;fax:(517) 432-2175 tel;work:(517) 432-5468 x-mozilla-html:TRUE url:http://www.lite.msu.edu/kortemeyer/ org:Michigan State University;LITE Lab adr:;;123 North Kedzie Labs;East

Strange log entry, Apache child messed up afterwards

2001-01-05 Thread Gerd Kortemeyer
Hi, Did anybody ever see a message like this in the error log after an "internal server error"? [error] Undefined subroutine Apache::lonhomework::handler called at /dev/null line 65535. No further entries. lonhomework is the mod_perl handler attached to a URL, and is called directly. This

[Fwd: Registry scripts slower than handlers: Why?]

2000-02-03 Thread Gerd Kortemeyer
Jie Gao wrote: Registry scripts run slower according to the benchmark data here. Presuming both were preloaded at server startup, can anybody explain this slowness? Slow is relative ... still a lot faster than vanilla cgi. But registry needs to emulate a cgi-like environment before

Re: redhat apache and modperl oh my!

2000-01-17 Thread Gerd Kortemeyer
Clay wrote: so i am just wanting to know what anyone has found out on mod perl not working properly under redhat 6.1? If you install everything (including modperl) from RedHat's RPMs, no problem (I did this on five very different boxes, some new, some upgraded). If you try to do it yourself

mod_perl and Kerberos

1999-10-12 Thread Gerd Kortemeyer
Just wondering if anybody has used Kerberos authentication from inside a mod_perl module - this is not just for "Basic Authentication", but the modules would do some processing (for example look for internal authentication first) before going out to Kerberos. Any hints on where to look for code