PerlRun problem: can't find method uri?

2002-04-30 Thread Ricky
Hi All, I am trying to porting mod_cgi script to mod_perl script because the mod_cgi script don't run correctly under mod_perl. When running under apache::registry, the script show wrong result. When running under apache::perlrun, the script sometimes crash. In error_log show : can't locate

Re: PerlRun problem: can't find method uri?

2002-04-30 Thread Stas Bekman
Ricky wrote: Hi All, I am trying to porting mod_cgi script to mod_perl script because the mod_cgi script don't run correctly under mod_perl. When running under apache::registry, the script show wrong result. what do you mean, wrong results. Have you read

Client capabilities

2002-04-30 Thread Joel Palmius
Is there a mod_perl API (or some other standard way) to determine what a client web browser is capable of displaying? (images, tables, plugins...) I am developing a web questionnaire system in mod_perl (1.26) and I'm thinking about maybe dividing the display code into different levels

Re: Client capabilities

2002-04-30 Thread Martin Haase-Thomas
HTTP defines an 'Accept' header. Joel Palmius wrote: Is there a mod_perl API (or some other standard way) to determine what a client web browser is capable of displaying? (images, tables, plugins...) I am developing a web questionnaire system in mod_perl (1.26) and I'm thinking about maybe

Re: Client capabilities

2002-04-30 Thread Simon Oliver
Martin Haase-Thomas wrote: HTTP defines an 'Accept' header. But that's not much use. For example lynx replies with HTTP_ACCEPT text/html, text/plain, image/*, image/jpeg, text/sgml, video/mpeg, image/jpeg, image/tiff, image/x-rgb, image/png, image/x-xbitmap, image/x-xbm, image/gif,

Re: Client capabilities

2002-04-30 Thread Mike V. Andreev
On Tue, 30 Apr 2002 13:00:33 +0100 Simon Oliver [EMAIL PROTECTED] wrote: SO The main problem is that a client can be modified from the standard SO install to prevent JavaScript, StyleSheets, Images, etc and there is no SO way to detect this server side. (and some text-based browsers can be

Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Fran Fabrizio
I am trying to make a portable mod_perl.conf. I have things like: Alias /cgi-bin/chimpkit/ /usr/local/apache/cgi-bin/chimpkit/ Location /cgi-bin/chimpkit/ SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI PerlSendHeader On /Location which really needs

Re: Client capabilities

2002-04-30 Thread F . Xavier Noria
On Tue, 30 Apr 2002 16:26:00 +0400 Mike V. Andreev [EMAIL PROTECTED] wrote: : On Tue, 30 Apr 2002 13:00:33 +0100 : Simon Oliver [EMAIL PROTECTED] wrote: : : SO The main problem is that a client can be modified from the standard : SO install to prevent JavaScript, StyleSheets, Images, etc and

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Steven Lembark
Yup. See the perl directive. Good description of how it works in the Eagle Book. -- Fran Fabrizio [EMAIL PROTECTED] I am trying to make a portable mod_perl.conf. I have things like: Alias /cgi-bin/chimpkit/ /usr/local/apache/cgi-bin/chimpkit/ Location /cgi-bin/chimpkit/ SetHandler

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Fran Fabrizio
Yikes, I just found an example of the exact thing I needed in the cookbook (recipe 2.16). Sorry, and thanks! -Fran

Re: PerlRun problem: can't find method uri?

2002-04-30 Thread Per Einar Ellefsen
At 09:09 30.04.2002, Ricky wrote: When running under apache::perlrun, the script sometimes crash. In error_log show : can't locate object method uri via package Apache::perlrun This got me wondering: are you specifying Apache::PerlRun in any configuration or Apache::perlrun? Please remember

mod-perl and Apache 2.0.35

2002-04-30 Thread Kent, Mr. John
Anyone have instructions on how to install mod-perl on Apache 2.0.35. Mod-Perl is looking for Apache's /src file which doesn't exist in 2.0.35. Thanks, John Kent -

Re: mod-perl and Apache 2.0.35

2002-04-30 Thread Per Einar Ellefsen
At 18:50 30.04.2002, Kent, Mr. John wrote: Anyone have instructions on how to install mod-perl on Apache 2.0.35. Mod-Perl is looking for Apache's /src file which doesn't exist in 2.0.35. Please remember that mod_perl 1.x is not compatible with Apache 2.x. The mod_perl development version for

Re: Client capabilities

2002-04-30 Thread Per Einar Ellefsen
At 13:12 30.04.2002, Joel Palmius wrote: Is there a mod_perl API (or some other standard way) to determine what a client web browser is capable of displaying? (images, tables, plugins...) I am developing a web questionnaire system in mod_perl (1.26) and I'm thinking about maybe dividing the

RE: schedule server possible?

2002-04-30 Thread Garnet R. Chaney
Steve, How about another process on the same machine that periodically accesses http://localhost/administration/schedule_tick.pl - Garnet Family Friendly Search - http://www.find11.com BidSearch - See how much others are bidding on keywords - http://bidsearch.find11.com -Original

RE: schedule server possible?

2002-04-30 Thread Lihn, Steve
What I am thinking is that if we can use Apache 2 to do it. That is, to make Apache's function beyond a request/response model. If this API is not there, I am proposing, if possible, 1. Add an Apache API to call sub init; when starting a thread. 2. Within sub init, it calls an Apache API to

Re: Help with Basic Auth mod_perl2

2002-04-30 Thread Per Einar Ellefsen
Peter: please subscribe to the users list, see http://perl.apache.org/preview/modperl-docs/dst_html/maillist/list-modperl.html for more information. That is where you should post questions like this, not the development list which is exclusively for mod_perl core development. I forwarded your

Re: Apache::DBI fails to compile?

2002-04-30 Thread Stas Bekman
F.Xavier Noria wrote: I installed Apache::DBI and make test run no test, but the make test of Apache::AuthCookieDBI tries to use Apache::DBI and fails because Apache/DBI.pm in line 202 invokes Apache-module(), which it seems it is not in the interface of the Apache class I have installed:

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Fran Fabrizio
I spoke too soon. I need: Perl push Alias, [ qw(/cgi-bin/chimpkit/ $ENV{SERVER_ROOT}/cgi-bin/chimpkit/) ]; /Perl This does not appear to be possible because there's no way to pass in SERVER_ROOT to the apache startup. I have SERVER_ROOT getting set in root's .bashrc, but when I execute

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-04-30 Thread Geoffrey Young
Fran Fabrizio wrote: I spoke too soon. I need: Perl push Alias, [ qw(/cgi-bin/chimpkit/ $ENV{SERVER_ROOT}/cgi-bin/chimpkit/) ]; /Perl This does not appear to be possible because there's no way to pass in SERVER_ROOT to the apache startup. I have SERVER_ROOT getting set in

Apache 2.0 worker MPM

2002-04-30 Thread Patrick Mackinlay
Hello, I am looking into using mod_perl with Apache 2 and the worker MPM, I was wondering what the status is of mod_perl for this setup. I noticed that in the docs it says it is in the alpha stage, is this due to perls ithreads not being quite ready? Is anyone using such a setup, on linux

Cheap and unique

2002-04-30 Thread David Jacobs
I'm converting a few CGI scripts that used the PID as a cyclical unique number (in concert with TIMESTAMP - so it was TIMESTAMP.PID). Our goal is to find a replacement function that is extremely cheap (cheaper than say, random(100)) and will never repeat. Any ideas? Has anyone else faced

Re: Cheap and unique

2002-04-30 Thread Ged Haywood
Hi there, On Tue, 30 Apr 2002, David Jacobs wrote: I'm converting a few CGI scripts that used the PID as a cyclical unique number (in concert with TIMESTAMP - so it was TIMESTAMP.PID). Our goal is to find a replacement function that is extremely cheap (cheaper than say, random(100))

Re: Cheap and unique

2002-04-30 Thread Perrin Harkins
David Jacobs wrote: I'm converting a few CGI scripts that used the PID as a cyclical unique number (in concert with TIMESTAMP - so it was TIMESTAMP.PID). Our goal is to find a replacement function that is extremely cheap (cheaper than say, random(100)) and will never repeat. Any

RE: Cheap and unique

2002-04-30 Thread OCNS Consulting
Check your Programming in PERL book. Specifically, the srand function. RB -Original Message- From: David Jacobs [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 3:39 PM To: [EMAIL PROTECTED] Subject: Cheap and unique I'm converting a few CGI scripts that used the PID as a

RE: Cheap and unique

2002-04-30 Thread Joe Breeden
If you look at the docs for mod_unique it will generate a unique number in a properly configured server farm making it a good candidate for this process if you are worried about getting a unique number across several systems. -Original Message- From: Perrin Harkins [mailto:[EMAIL

Re: Cheap and unique

2002-04-30 Thread Perrin Harkins
OCNS Consulting wrote: Check your Programming in PERL book. Specifically, the srand function. 'random' ne 'unique' A random function could return the same number 10 times in a row. It's very unlikely, but it could happen. That's the definition of random. - Perrin

RE: Cheap and unique

2002-04-30 Thread OCNS Consulting
You could try - Math::TrulyRandom CPAN module. RB -Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 4:08 PM To: OCNS Consulting Cc: David Jacobs; [EMAIL PROTECTED] Subject: Re: Cheap and unique OCNS Consulting wrote: Check your

RE: Cheap and unique

2002-04-30 Thread Andrew Ho
Hello, OCNSYou could try - Math::TrulyRandom CPAN module. Perrin's comments still apply. There is no guarantee that a random number generator of any type (truly random or otherwise) will return unique values. In fact, one would fully expect repetition after some amount of time. Humbly,

RE: Cheap and unique

2002-04-30 Thread OCNS Consulting
Of course srand seeds rand. And yes, it is a good way to generate random numbers for a one time application RUN. CGI on the other hand could pose a problem, as stated in the Programming in PERL book. Salutations - RB -Original Message- From: Paul Johnson [mailto:[EMAIL PROTECTED]] Sent:

Re: Cheap and unique

2002-04-30 Thread Steve Piner
David Jacobs wrote: I'm converting a few CGI scripts that used the PID as a cyclical unique number (in concert with TIMESTAMP - so it was TIMESTAMP.PID). Our goal is to find a replacement function that is extremely cheap (cheaper than say, random(100)) and will never repeat. Any

[Fwd: Re: Cheap and unique]

2002-04-30 Thread David Jacobs
I'm just curious - what's wrong with the function you're already using? Steve Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_) mod_unique_id looks like a good solution, pending performance. Thanks for your help so far, everyone! David

Re: [Fwd: Re: Cheap and unique]

2002-04-30 Thread Alex Krohn
Hi, I'm just curious - what's wrong with the function you're already using? Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_) TIMESTAMP . $$ . $GLOBAL++ might work just as well (as $global will persist).. Cheers, Alex -- Alex Krohn [EMAIL PROTECTED]

Perl Callbacks not working

2002-04-30 Thread Vitor
Hello, I am trying to use a Perl Module that is an interface to a C Library. These module use some callbacks , like these perl Code: use strict; use Mail::CClient qw(set_callback); set_callback (login= sub { return (login,password); } ) I think this is related with the cacching feature of

Re: [Fwd: Re: Cheap and unique]

2002-04-30 Thread Steve Piner
David Jacobs wrote: I'm just curious - what's wrong with the function you're already using? Steve Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_) But the timestamp will make it unique - as long as you're not serving several requests per second. If you are,

XML::LibXSLT / Apache / MOD_Perl Segfaults

2002-04-30 Thread D. Hageman
I am having some issues utilizing XML::LibXSLT into a mod_perl application I am working on. The problem displays itself as a segfault on server startup. The setup I have is a standard RedHat 7.2 box with the following updated packages: apache 1.3.23 mod_perl 1.26 libxml2 2.4.21 libxslt

Re: [Fwd: Re: Cheap and unique]

2002-04-30 Thread David Jacobs
Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_ But the timestamp will make it unique - as long as you're not serving several requests per second. I'm building the system so I can be confident up to thousands of requests/second. Looks like unique_id_module is good

Re: XML::LibXSLT / Apache / MOD_Perl Segfaults

2002-04-30 Thread Matt Sergeant
D. Hageman wrote: I am having some issues utilizing XML::LibXSLT into a mod_perl application I am working on. The problem displays itself as a segfault on server startup. The setup I have is a standard RedHat 7.2 box with the following updated packages: apache 1.3.23 mod_perl 1.26

Re: XML::LibXSLT / Apache / MOD_Perl Segfaults

2002-04-30 Thread D. Hageman
I should note then that it will also segfault if I don't attempt to preload it and just 'use' it in a module. The only difference is that the backtrace is significantly longer. :-) On Tue, 30 Apr 2002, Matt Sergeant wrote: D. Hageman wrote: I am having some issues utilizing XML::LibXSLT

Is ActivePerl required with a mod_perl-Apache installation

2002-04-30 Thread Peter Rothermel
Is there anyway to build mod_perl and Apache so that my target installation does not require ActivePerl on WinNT platforms. I'm currently doing my development on a WinNT that has ActivePerl installed and in my PATH. This is where I'm developing perl modules. When I move my installation over to

RE: XML::LibXSLT / Apache / MOD_Perl Segfaults

2002-04-30 Thread Clayton Cottingham
Have you compiled apache with noexpat in the apache? -- Clayton Cottingham Air Games Wireless Inc. Suite 204, 309 W. Cordova St. Vancouver BC V6B 1E5 Canada Tel: +1.604.408.2228 Cel: +1.604.720.3510 Fax: +1.604.408.2649 Email: [EMAIL PROTECTED] Web: www.airg.com -Original Message-

RE: XML::LibXSLT / Apache / MOD_Perl Segfaults

2002-04-30 Thread D. Hageman
Yes, I have done that as well. On Tue, 30 Apr 2002, Clayton Cottingham wrote: Have you compiled apache with noexpat in the apache? -- Clayton Cottingham Air Games Wireless Inc. Suite 204, 309 W. Cordova St. Vancouver BC V6B 1E5 Canada Tel: +1.604.408.2228 Cel: +1.604.720.3510 Fax:

Re: Client capabilities (and JavaScript)

2002-04-30 Thread Michael Nino
Hi, With minimal JavaScript code you could identify the browser's capabilities. Here is how you might approach the task. If the browser is Lynx then send text only version otherwise send JavaScript browser sniffer. The JavaScript sniffer can check for CSS, DHTML, DOM, plugins, etc... then

Re: [Fwd: Re: Cheap and unique]

2002-04-30 Thread Michael Robinton
I'm just curious - what's wrong with the function you're already using? Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_) TIMESTAMP . $$ . $GLOBAL++ I use the above. If you create a global for the child process then that is adequate since the PID belongs to the

[ANNOUNCE] Apache::ASP 2.33 released

2002-04-30 Thread Joshua Chamas
Hey, Apache::ASP 2.33 is released, which you can find in your local CPAN, or http://www.perl.com/CPAN-local/modules/by-module/Apache/ Below are the changes for 2.33 2.31 since I never officially announced 2.31. This is a big release which has some bug fixes, lots of new test cases to

Re: Apache 2.0 worker MPM

2002-04-30 Thread Stas Bekman
Patrick Mackinlay wrote: Hello, I am looking into using mod_perl with Apache 2 and the worker MPM, I was wondering what the status is of mod_perl for this setup. I noticed that in the docs it says it is in the alpha stage, is this due to perls ithreads not being quite ready? No, it's

Re: [Fwd: Re: Cheap and unique]

2002-04-30 Thread Stas Bekman
Michael Robinton wrote: I'm just curious - what's wrong with the function you're already using? Mod_Perl hangs on to it's PID, so it's no longer unique. (I _believe_) TIMESTAMP . $$ . $GLOBAL++ Do not use concat, but sprintf 0 padding. Here is an example that can happen easily which

Re: [Fwd: Re: Cheap and unique]

2002-04-30 Thread Stas Bekman
In my post I've missed the 'd' token in %05d Here are a few possible solutions that will do all the work for you Apache/UUID.pm -- package Apache::UUID; use strict; my($base, $seq); die Cannot push handlers unless Apache-can('push_handlers'); init(); sub init {