mod_perl compilation?!?!?

2008-06-11 Thread Pawel Eljasz
regards everybody got my perl-5.10.0 compiled with prefix /test as well as apache now, I'd think, simple mod_perl compilation, right? /test/bin/perl Makefile.pl MP_APXS=/test/sbin/apxs well, huh, works fine, no errors module lands into apache's module folders, gets dynamically loaded in

Re: mod_perl newbie gotcha

2007-11-22 Thread Gunnar Hjalmarsson
data. I wasn't able to reproduce the described problem. Are you saying that the code worked as expected? Yes. I run it under mod_perl on my IndigoPerl installation, but AFAIK it's quite similar to ActiveState. If so this implies that the configuration of my particular setup is the

Re: mod_perl newbie gotcha

2007-11-22 Thread evil...@gmail.com
On Nov 20, 11:52 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: > [EMAIL PROTECTED] wrote: > > The problem is that after the first successful send/receive, all > > subsequent executions contain the same initial data: the parameters > > never get reset with 'newer' data. > > I wasn't able to repr

Re: mod_perl newbie gotcha

2007-11-20 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: The problem is that after the first successful send/receive, all subsequent executions contain the same initial data: the parameters never get reset with 'newer' data. I wasn't able to reproduce the described problem. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/

mod_perl newbie gotcha

2007-11-20 Thread evil...@gmail.com
Looking for help from anyone with mod_perl experience - I have been caught by a classic newbie gotcha... I think. Running Activestate Perl v5.8.8 for MSWin32, Apache 2.0 for Win32 I believe I have correctly installed mod_perl as $ENV{'MOD_PERL'} correctly reports the version "

Re: first steps with mod_perl

2007-10-10 Thread Marek
On 9 Okt., 12:07, [EMAIL PROTECTED] (David Dorward) wrote: > On 9 Oct 2007, at 04:04, Marek wrote: > snip > > According to the CGI.pm documentation, it defaults to XHTML (so it > should be outputting checked="checked") unless you use -dtd to > specify an HTML 2.0 or 3.2 DTD. (Why not HTML 4.x I

Re: first steps with mod_perl

2007-10-09 Thread David Dorward
On 9 Oct 2007, at 04:04, Marek wrote: if I understand well, it is extremely difficult to make CGI.pm produce valid html My problem are the many tags in the form - and the checked instead of checked="checked" in the input-tags. But probably I am not yet understanding CGI.pm? It has been a long

Re: first steps with mod_perl

2007-10-09 Thread Marek
Hi Gunnar, if I understand well, it is extremely difficult to make CGI.pm produce valid html My problem are the many tags in the form - and the checked instead of checked="checked" in the input-tags. But probably I am not yet understanding CGI.pm? Probably it is really easier, to print direct

Re: first steps with mod_perl

2007-10-06 Thread Gunnar Hjalmarsson
Marek wrote: ... how to insert the DTD the right way: print start_html( -title=>'Secrets of the Pyramids', -author=>'[EMAIL PROTECTED]', -base=>'true', -target=>'_blank', -meta=>{'keywords'=>'ph

Re: first steps with mod_perl

2007-09-30 Thread Marek
Thank you Gunnar, I know how to print in Perl! My question was about CGI.pm Module, and how the default DTD is set: by the version of the CGI-Mudule, or by Apache-Config ... Strangely Matthew Hellman answered again off-list and suggested the following code, which finally gave me an idea, how to

Re: first steps with mod_perl

2007-09-23 Thread Gunnar Hjalmarsson
Marek wrote: I see only the possibility to insert it manually, but I don't know how to achieve this. By printing directly I meant not making use of the start_html() function. print http://www.w3.org/1999/xhtml"; lang="en-US"> Hello World

Re: first steps with mod_perl

2007-09-23 Thread Marek
Thank you Gunnar, and Thank you Matthew Hellman (who replied off-list) Matthew sent me the link to: http://search.cpan.org/~lds/CGI.pm-3.29/CGI.pm#CREATING_THE_HTML_DOCUMENT_HEADER which does not reply my question: how to insert an DTD xhtml strict or transitional, and how to avoid the xhtml

Re: first steps with mod_perl

2007-09-18 Thread Gunnar Hjalmarsson
Marek wrote: First question: this cgi script inserts an strange DOC-Type, from which I have never heard off: http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd";> May I force mod_perl to insert an other doc-type? For example: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"

first steps with mod_perl

2007-09-18 Thread Marek
;color', -values=>['red','green','blue','chartreuse']), submit), end_form, hr({-class=>'guest3'}); if (param()) { my $name = param('name'); my $keywords = join ', ',param('words');

Re: Flushing output buffer under mod_perl

2006-07-16 Thread Todd W
""Ibrahim Dawud"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Since mod_perl wraps my entire code into a handler subroutine behind > the scenes, I figured out how to access the apache API from a normal > cgi script. Hence, the following

Re: Flushing output buffer under mod_perl

2006-07-12 Thread Ibrahim Dawud
Since mod_perl wraps my entire code into a handler subroutine behind the scenes, I figured out how to access the apache API from a normal cgi script. Hence, the following example appears to be working under mod_perl2: #!/usr/bin/perl my $r = shift; use CGI; my $cgi = new CGI; print $cgi->hea

Re: Flushing output buffer under mod_perl

2006-07-10 Thread Mr. Shawn H. Corey
Mr. Shawn H. Corey wrote: > Ibrahim Dawud wrote: > >>Hello, >> >>The following code works great using normal perl but does not work >>under mod_perl: >> Oops, I overlooked the fact that you are using mod_perl. I haven't use it for years but I seem t

Re: Flushing output buffer under mod_perl

2006-07-10 Thread Mr. Shawn H. Corey
Ibrahim Dawud wrote: > Hello, > > The following code works great using normal perl but does not work > under mod_perl: > > #!/usr/bin/perl > > use CGI; > my $cgi = new CGI; > print $cgi->header(); > print $cgi->start_html(); > $| = 1; > print $cgi-&g

Flushing output buffer under mod_perl

2006-07-10 Thread Ibrahim Dawud
Hello, The following code works great using normal perl but does not work under mod_perl: #!/usr/bin/perl use CGI; my $cgi = new CGI; print $cgi->header(); print $cgi->start_html(); $| = 1; print $cgi->h2("test1"); sleep 1; $| = 1; print $cgi->h2("test2");

Problems with CGI and mod_perl

2006-06-09 Thread J. Alejandro Ceballos Z. -JOAL-
I am running ubuntu on my pc and I installed the package mod_perl ... Did you installed directly (perl Makefile.PL and so on...) or used the cpan command (mihost# sudo cpan ) ? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <h

Re: Problems with CGI and mod_perl

2006-06-06 Thread Jonathan Mangin
- Original Message - From: "sfantar" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 06, 2006 1:21 PM Subject: Problems with CGI and mod_perl > Hello everyone > > I have started since today learning how to write cgi in Perl with this > doc : http://users.ea

Problems with CGI and mod_perl

2006-06-06 Thread sfantar
Hello everyone I have started since today learning how to write cgi in Perl with this doc : http://users.easystreet.com/ovid/cgi_course/lessons/lesson_one.html I am running ubuntu on my pc and I installed the package mod_perl made by ubuntu a few days ago and I was able to run Perl scripts

Mod_perl environment discovery and learning

2005-08-27 Thread Gilbert Rebeiro
Hi, I am trying to learn perl, and am trying to modify an application which runs in a mod_perl apache environment. To help me discover and learn, I was wondering if there was a way to put a statement or statements to dump the environment (all variables) at a specific spot during execution

Re: mod_perl questions

2004-12-18 Thread Sean Davis
Greg, You will probably need to read some documentation: http://perl.apache.org/docs/index.html http://perl.apache.org/docs/1.0/guide/porting.html Note that last one is mod_perl-based, not mod_perl2, but it is a reasonable introduction. Also, the mod_perl book is available online: http

mod_perl questions

2004-12-18 Thread Greg Donald
I've used Perl off and on for years but I am now trying to work with mod_perl and I have some questions/issues. How can I tell if I have mod_perl configured correctly? I installed it with `emerge mod_perl` on my Gentoo box. I am running Apache2. I see the line: Apache/2.0.52 (Gentoo/

Re: Script not behaving the same when run under perl and mod_perl

2004-04-02 Thread WC -Sx- Jones
Loren Erwin wrote: This might be a question for Apache configuration, but I figured I would start here. http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems If your script doesnt work under mod_perl try mod_cgi (If mod_cgi was built into the httpd server.) read: http

Script not behaving the same when run under perl and mod_perl

2004-04-02 Thread Loren Erwin
->param{'timeframe'}). I run it from perl directory (mod_perl) in Apache 1.3 (Linux machine). It does not pass any parameters. I can run it under mod_ssl or no mod_ssl and get the same issue. This might be a question for Apache configuration, but I figured I would start here. Windows mac

RE: mod_perl doesn't seem to work

2003-07-24 Thread Bob Showalter
Kates Gasis wrote: > Hello Perl world. > > I'm using ActiveState Perl 5.6.1 and Apache 1.3.27. Everything used > to work fine until I installed mod_perl. Now my perl scripts doesn't > work anymore. Whenever I access my scripts, my browser is giving me > an option to

mod_perl doesn't seem to work

2003-07-24 Thread Kates Gasis
Hello Perl world.   I'm using ActiveState Perl 5.6.1 and Apache 1.3.27. Everything used to work fine until I installed mod_perl. Now my perl scripts doesn't work anymore. Whenever I access my scripts, my browser is giving me an option to save or open the file. If I choose open,

Re: Cookies and mod_perl

2003-07-05 Thread Bob Showalter
Dennis Stout wrote: > Is there any difference in setting cookies between operating under > just general CGI and when using an Apache webserver and mod_perl? By "general CGI", if you mean mod_cgi, then no, there is no difference. > > I got a program I'm writing that gen

Re: Cookies and mod_perl

2003-07-04 Thread Wiggins d'Anconia
Dennis Stout wrote: Is there any difference in setting cookies between operating under just general CGI and when using an Apache webserver and mod_perl? I got a program I'm writing that generates every page it dishes out on the fly, dynamically. If I can stay away from doing a use CGI;, I

Cookies and mod_perl

2003-06-29 Thread Dennis Stout
Is there any difference in setting cookies between operating under just general CGI and when using an Apache webserver and mod_perl? I got a program I'm writing that generates every page it dishes out on the fly, dynamically. If I can stay away from doing a use CGI;, I would love to. T

Re: mod_perl books, cpan modules. (fwd)

2003-03-23 Thread Lincoln Stein
Someday I will write a new edition. The problem is that almost everything has changed and so it is basically a new book. Lincoln > > > -- Forwarded message -- > Date: 20 Mar 2003 09:33:56 - > From: entius <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] &

Re: mod_perl books

2003-03-22 Thread Iain 'Spoon' Truskett
* entius ([EMAIL PROTECTED]) [21 Mar 2003 23:26]: > I want to learn mod_perl and there're two books who talk > about this. Now a third has arrives and it's talking > about 2.0 mod_perl but i am a Lincoln Stein fan and i want > the "Writing Apache Modules with Perl and

RE: mod_perl books, cpan modules.

2003-03-21 Thread wiggins
On 20 Mar 2003 09:33:56 -, entius <[EMAIL PROTECTED]> wrote: > I want to learn mod_perl and there're two books who talk about this. > Now a third has arrives and it's talking about 2.0 mod_perl but i am a > Lincoln

mod_perl books, cpan modules.

2003-03-21 Thread entius
I want to learn mod_perl and there're two books who talk about this. Now a third has arrives and it's talking about 2.0 mod_perl but i am a Lincoln Stein fan and i want the "Writing Apache Modules with Perl and C". But the last edition is still about 1.3, anyone know

Re: Webhosting that supports mod_perl

2002-10-11 Thread William McKee
On 11 Oct 2002 at 1:09, Ramon Hildreth wrote: > Hi, Does anyone know of a good web host that > Supports mod_perl? Ramon, >From my experience, you're going to have a hard time finding a host that offers shared hosting with mod_perl due to the was mod_perl shares scripts globa

[Re:Webhosting that supports mod_perl]

2002-10-11 Thread Todor Todorov
I think www.host.sk offers whatever you need. But it`s in Slovakian :) Óíèêàëíî ïðåäëîæåíèå! Àëáóì íà Åëâèñ '30 # 1 HITS' - 30 çëàòíè õèòà íà Êðàëÿ íà ðîêà. Äîñòàâêà äî äîìà èëè îôèñà CD - 11 ëâ. MC - 7 ëâ. îò BMG/AveNew Productions http://www.kefche.com/

Webhosting that supports mod_perl

2002-10-11 Thread Ramon Hildreth
Hi, Does anyone know of a good web host that Supports mod_perl? thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

mod_perl & SQL

2002-06-28 Thread eric-perl
Hello, All: Can anyone recommend a good introductory-level tutorial on writing mod_perl modules that interface with SQL? -- Eric P. Los Gatos, CA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Mod_perl

2002-03-22 Thread zentara
On Fri, 22 Mar 2002 01:00:48 -0800 (PST), [EMAIL PROTECTED] (Rob Roudebush) wrote: > > I have created basic forms using CGI.pm and now I'm interested in using Apache >mod_perl to speed things up and use associated apache modules. Question: Can I >continue to program using r

Re: Mod_perl

2002-03-22 Thread fliptop
Rob Roudebush wrote: > I have created basic forms using CGI.pm and now I'm interested in using Apache >mod_perl to speed things up and use associated apache modules. Question: Can I >continue to program using regular CGI, using params etc. or does mod_perl require me >to pr

Mod_perl

2002-03-22 Thread Rob Roudebush
I have created basic forms using CGI.pm and now I'm interested in using Apache mod_perl to speed things up and use associated apache modules. Question: Can I continue to program using regular CGI, using params etc. or does mod_perl require me to program differently? Links to good reso

Re: mod_perl and nntp.perl.org

2001-10-30 Thread Gunther Birznieks
and > > > having a fair preference for a usenet-style discussion as opposed to a > > > mailing list format, it might be useful to bring such onboard here at > > > nntp.perl.org... > > > > I don't think we to make an extra mod_perl list. Maybe I'll get

Re: mod_perl and nntp.perl.org

2001-10-30 Thread Scott R. Godin
pposed to a > > mailing list format, it might be useful to bring such onboard here at > > nntp.perl.org... > > I don't think we to make an extra mod_perl list. Maybe I'll get > around to adding some of the apache.org lists to the perl.org news > server some day, b

Re: mod_perl and nntp.perl.org

2001-10-30 Thread Ask Bjoern Hansen
l.org... I don't think we to make an extra mod_perl list. Maybe I'll get around to adding some of the apache.org lists to the perl.org news server some day, but don't hold your breath - my list of projects is (too) long. :-) -- ask bjoern hansen, http://ask.netcetera.dk/ !try; d

RE: mod_perl

2001-10-29 Thread Gunther Birznieks
At 12:47 AM 10/30/2001, Bob Showalter wrote: > > -Original Message- > > From: John Griessen [mailto:[EMAIL PROTECTED]] > > Sent: Monday, October 29, 2001 11:39 AM > > To: David Kirol > > Cc: [EMAIL PROTECTED] > > Subject: Re: mod_perl > > > >

RE: mod_perl

2001-10-29 Thread Bob Showalter
> -Original Message- > From: John Griessen [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 29, 2001 11:39 AM > To: David Kirol > Cc: [EMAIL PROTECTED] > Subject: Re: mod_perl > > > Would one of you give me a little overview and point to best > docs

Re: mod_perl

2001-10-29 Thread John Griessen
Would one of you give me a little overview and point to best docs to read for mod_perl and CGI perl. For starters, I tried to put a script at my local apache web server root directory, and the server just displays the contents as text...sounds like a web server setting is wrong like an alias

Re: mod_perl and nntp.perl.org

2001-10-28 Thread David Kirol
I am also interested in finding more help with mod_perl. I am trying to use HTML Mason (which requires mod_perl) and other tools. Any thing that would help reduce the learning gradient for me would be appreciated. "Scott R. Godin" <[EMAIL PROTECTED]> wrote in message [EMAIL

mod_perl and nntp.perl.org

2001-10-28 Thread Scott R. Godin
mod_perl and Apache::* discussion, perhaps? aside from the mailing lists @apache.org I haven't seen much else, and having a fair preference for a usenet-style discussion as opposed to a mailing list format, it might be useful to bring such onboard here at nntp.perl.org... It's just a th

Re: mod_perl/browser language

2001-10-04 Thread fliptop
Rob wrote: > > How can I detect the browser language using mod_perl? > > I tried this: > > $ENV{'HTTP_ACCEPT_LANGUAGE'}; > > but it doesn't seem to work.. read them: $lang = $r->subprocess_env->{'HTTP_ACCEPT_LANGUAGE'}; write

mod_perl/browser language

2001-10-03 Thread Rob
How can I detect the browser language using mod_perl? I tried this: $ENV{'HTTP_ACCEPT_LANGUAGE'}; but it doesn't seem to work.. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: difference between perl & mod_perl

2001-06-08 Thread Brett W. McCoy
On Fri, 8 Jun 2001, [iso-8859-1] Vontel Girish wrote: > I want to know what is the difference between perl and > mod_perl What do you mean by 'difference'? mod_perl is Perl, but it is an Apache module that enables one to create high-performance CGI scripts by embedding a

difference between perl & mod_perl

2001-06-08 Thread Vontel Girish
I want to know what is the difference between perl and mod_perl Thanks, Vontel Girish = V.GIRISH 5/29, White Street, Southport, Gold Coast, QLD 4215, AUSTRALIA Cell: +61 414510375 home: +61 7 5528 0794 Do You Yahoo!? For

Re: difference between perl & mod_perl

2001-06-08 Thread Jeff Yoak
At 06:07 AM 6/8/01 +0100, Vontel Girish wrote: >I want to know what is the difference between perl and >mod_perl Perl is a general purpose programming language. mod_perl is an Apache module for implementing dynamic web content. Using mod_perl for your dynamic web content, you&#x

Re: REPOST: Regex compilation in mod_perl?

2001-06-05 Thread Len Walter
Awesome! That worked, although the lines were actually terminated by \r\n - my superb observational skills at work again. Although I chomped each line, that would have only removed the trailing \r (depending on the value of $/, that is), and not the \n on the next line. That had me stumped for ab

Re: REPOST: Regex compilation in mod_perl?

2001-06-05 Thread Timothy Kimball
Len Walter wrote: : Since the data is "string\n\rstring" I figured I could use split /^/ to : separate out the individual strings. There's probably an easier way to do it : though... the split seems to work correctly, and both @strings and %content : get filled apparently ok. Try splitting on

REPOST: Regex compilation in mod_perl?

2001-06-04 Thread Len Walter
Hi all, I'm trying to write a script to retrieve a list of URLs, search them for a list of words and print the results. I wrote it first as a standalone script and got it working, but when I converted it to a web page it no longer works properly. The data is typed into two TEXTAREAs, one url

resend with 78 columns: Re: Regexp compilation in mod_perl?

2001-06-02 Thread Len Walter
ng to regexes that use the /o modifier: > > my $x =~ /$somevar/o; > > In regular Perl (and mod_perl), that causes the pattern to only be compiled > once. If the value of $somevar changes, the regular expression will still > try to match against the old pattern. This is

Re: Regexp compilation in mod_perl?

2001-06-01 Thread Len Walter
garbage collected? Thanks for your help, Len Curtis Poe wrote: > > In the "mod_perl_traps" page, when it refers to regexes only being compiled once, it >is > specifically referring to regexes that use the /o modifier: > > my $x =~ /$somevar/o; > > In

Re: Regexp compilation in mod_perl?

2001-06-01 Thread Curtis Poe
In the "mod_perl_traps" page, when it refers to regexes only being compiled once, it is specifically referring to regexes that use the /o modifier: my $x =~ /$somevar/o; In regular Perl (and mod_perl), that causes the pattern to only be compiled once. If the value of $somevar ch

Regexp compilation in mod_perl?

2001-06-01 Thread Len Walter
G'day, I've got a problem with a script I'm writing which will run under mod_perl. It accepts a list of urls and a list of strings and returns a list of which urls contain which strings. That's not complicated and I got it working fairly quickly without any CGI involv