Re: newbie question: extra Content-Type headers?

2000-02-05 Thread Stas Bekman
On Fri, Feb 04, 2000 at 06:21:21PM -0800, John Darrow wrote: I apologize if this is a dumb question, but I just installed Apache and mod_perl and all seems to have gone well. The trouble comes in when I try to run a script using Apache::Registry and CGI.pm. I get an extra Content-Type

RE: newbie question: extra Content-Type headers?

2000-02-05 Thread John Darrow
Thanks. Upgrading to 2.56 did fix it. My system still had CGI version 2.36. -john. -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 05, 2000 1:33 AM To: Wendell Cc: John Darrow; [EMAIL PROTECTED] Subject: Re: newbie question: extra Content

newbie question: extra Content-Type headers?

2000-02-04 Thread John Darrow
I apologize if this is a dumb question, but I just installed Apache and mod_perl and all seems to have gone well. The trouble comes in when I try to run a script using Apache::Registry and CGI.pm. I get an extra Content-Type in the resulting page, and I can't figure out where it's coming from

Re: newbie question: extra Content-Type headers?

2000-02-04 Thread Bill Moseley
At 06:21 PM 02/04/00 -0800, John Darrow wrote: I apologize if this is a dumb question, but I just installed Apache and mod_perl and all seems to have gone well. The trouble comes in when I try to run a script using Apache::Registry and CGI.pm. I get an extra Content-Type in the resulting page

New Bloke question - modifying canned footer (Eagle book)

2000-02-03 Thread Oliver Holmes ITS 1999
Hi there, I've got the canned footer (Eagle book chapter 4) up and running, and it edits html files on the local host fine using the Files ~ "\.html$"... directive. I was wondering how to implement the footer so that it appeared on all html files (ie. external files), and not just local

Re: New Bloke question - modifying canned footer (Eagle book)

2000-02-03 Thread Vivek Khera
"OHI1" == Oliver Holmes ITS 1999 [EMAIL PROTECTED] writes: OHI1 Hi there, OHI1 I've got the canned footer (Eagle book chapter 4) up and running, and it edits html files on the local host fine using the Files ~ "\.html$"... directive. OHI1 I was wondering how to implement the footer so that it

Re: Newbie Question

2000-02-02 Thread Samuel Beam
I am a relative newbie to mod_perl myself, but - I would think if you just want "a script to handle forms" that a vanilla CGI would be cake to set up and sufficient for your needs unless you get huge traffic. And I am led to think that if you just loaded ActivePerl then you are a long way

Re: Newbie Question

2000-02-02 Thread Waldek Grudzien
I am a relative newbie to mod_perl myself, but - I would think if you just want "a script to handle forms" that a vanilla CGI would be cake to set up and sufficient for your needs unless you get huge traffic. And I am led to think that if you just loaded ActivePerl then you are a long way from

Newbie Question

2000-02-01 Thread Ian Ollier
Hi all, I hope you guys will forgive this question, but I am a complete beginner with CGI etc. We run an NT Server using Apache Web Server and I want to run Perl scripts on our web site to handle our administration forms. I loaded the Activeperl software onto the server, but it still

Re: Newbie Question

2000-02-01 Thread Victor Zamouline
Hi Ian, We run an NT Server using Apache Web Server and I want to run Perl scripts on our web site to handle our administration forms. To get full advantage out of mod_perl, it is more interesting to use it on UNIX machines. But, in this community, we will encourage you to use mod_perl even

Newbie Question

2000-02-01 Thread Ian Ollier
Thanks for your responses so far, I know I have a lot of reading to do but I just thought I would add this to my first post. After loading Activeperl I changed the httpd.conf file by adding the following: Alias /perl/ c:/Program Files/Apache Group/Apache/cgi-bin Location /perl SetHandler

Re: ApacheDBI question

2000-01-29 Thread Mark Cogan
At 05:40 PM 1/28/00 -0500, Deepak Gupta wrote: How does connection pooling determine how many connections to keep open? The reason I ask is that I am afraid my non-modperl scripts are getting rejected by the db server b/c all (or most) connections are being dedicated to Apache activity.

ApacheDBI question

2000-01-28 Thread Deepak Gupta
How does connection pooling determine how many connections to keep open? The reason I ask is that I am afraid my non-modperl scripts are getting rejected by the db server b/c all (or most) connections are being dedicated to Apache activity. Thanks, Deepak

Re: ApacheDBI question

2000-01-28 Thread Perrin Harkins
On Fri, 28 Jan 2000, Deepak Gupta wrote: How does connection pooling determine how many connections to keep open? The reason I ask is that I am afraid my non-modperl scripts are getting rejected by the db server b/c all (or most) connections are being dedicated to Apache activity. Please

Re: Running 2 httpd on one mache question.

2000-01-27 Thread Chris Thompson
On Wed, Jan 26, 2000 at 03:22:12PM -0300, Martin A. Langhoff wrote: But there's one thing that I can't imagine. When I run top, how do I tell memory/cpu consumption from lightweight daemons from the mem/cpu consumption from mod_perl daemons? We have a web farm that hosts four separate

Re: question, blessing objects, modifying them

2000-01-27 Thread Jeff Beard
Check out "perldoc perltoot" under Class interface. Cheers, Jeff At 01:43 PM 1/27/00 -0800, Etienne Pelaprat wrote: hi all, i'm starting out doing some Object Oriented programming with mod_perl and I define one object like this: sub new { my $self = shift; my $type =

Re: question, blessing objects, modifying them

2000-01-27 Thread Stas Bekman
Etienne, We all love the OO hype letters, but first it's the offtopic question, second it's the FAQ question. You can hunt for luck at the perl newsgroup or other perl generic list. But save your time and frustration -- read some books, for example 'Object Oriented Perl' by Domian and 'Perl

Re: Running 2 httpd on one mache question.

2000-01-26 Thread Joshua Chamas
"Martin A. Langhoff" wrote: Hi all, I've read all the documentation on how to run 2 different httpd, one for lightweight serving and a mod_perl enabled daemon. Also read the threads about this last weeks. But there's one thing that I can't imagine. When I run top, how do I

Re: question?

2000-01-20 Thread Rod Butcher
If I understand you correctly, you don't want to use mod_perl, just Perl. If so, the easiest way to use perl is to dowload ActivePerl (free) from Activestate website http://www.activestate.com/ActivePerl/download.htm It comes with great documentation, install it as per documentation. If you wish

question?

2000-01-19 Thread Jingtao Yun
Hi, I installed Apache Server for NT on my machine. But I don't know how to get perl to work not using module perl. Any message will be appreciated.

Authentication question

2000-01-11 Thread Robert
Hi, I'm doing authentication against SQL database and then connecting the same database from the (embperl) page itself, but I cannot use Apache::DBI because there are several different databases running (with way too many connect strings to cache). Is there any (simple) way to reuse the db

RE: Authentication question

2000-01-11 Thread Gerald Richter
Is there any (simple) way to reuse the db handle from authentocation handler in serving the page? Is it possible to put the database handle in $r-pnotes? Or would the connection not survive that? That should work... Gerald

RE: Embperl / Variable Scope Question

2000-01-10 Thread Jason Bodnar
At the top of the config file put: package Config; and refer to the vars in your page as: [+ $Config::foo +] On 09-Jan-00 Mike Cantrell wrote: Quick question: Let's say I want to keep a common configuration file which defines variables and such. I'd like to [- Execute() -] the file

Re: Curious performance question

2000-01-08 Thread Matt Sergeant
On Sat, 08 Jan 2000, Sergio Salvi wrote: Is there a way to remove the stat() and lstat() syscalls when using the Location directive, as in this case they're not necessary ? Make sure you set "AllowOverride None" so that it doesn't try and locate a .htaccess file. PS: I've found a simple

Re: question about global.asa

2000-01-07 Thread Joshua Chamas
. Currently, I am not using VirtualHosts or .htaccess file. My question is: Can I use global.asa in each of these sub- directories *without* using .htaccess file (where I would be declaring the StateDir variable normally)? The "Global" variable in my httpd.conf file is set to "." My

question about global.asa

2000-01-06 Thread ritu
or .htaccess file. My question is: Can I use global.asa in each of these sub- directories *without* using .htaccess file (where I would be declaring the StateDir variable normally)? The "Global" variable in my httpd.conf file is set to "." My concern is that if I do not set t

Upgrade question....Help!

1999-12-30 Thread Keith Kwiatek
Hello, A while ago I built apache 1.3.6 with mod_ssl-2.3.1-1.3.6 and mod_perl-1.19 on my sun solaris 2.7 PRODUCTION box. Everything has worked GREAT! QUESTION: I want to upgrade to apache1.3.9 and mod_ssl-2.4.8-1.3.9 and mod_perl-1.21, BUT I am not certain on the safe strategy for upgrading

Re: Another install question: CGI.pm not found

1999-12-21 Thread Doug MacEachern
On Thu, 16 Dec 1999, Bill Moseley wrote: What obvious thing am I missing? During make test this gets written to the error log: Can't locate CGI.pm in @INC at /mod_perl-1.21/t/net/perl/cgi.pl line 7. that's a strange error, because 5.005+ reports the @INC paths, e.g.: % perl -MNotHere

Re: Another install question: CGI.pm not found

1999-12-21 Thread Doug MacEachern
79) %grep cgi.pl t/logs/error_log Can't locate CGI.pm in @INC at /data/_g/lii/apache/src/heavy/mod_perl-1.21/t/net/perl/cgi.pl line 3. again, I don't think it's possible for 5.005+ to produce this error message without listing the contents of @INC. cgi.pl is generated from cgi.pl.PL and also

Re: open 2 question

1999-12-19 Thread Eric L. Brine
i am trying to get my mind around the concept of open2 which is.. open2( /*MYSTDIN, /*MYSTDOUT, "myprog"); how do i simply read to the program and write to the program.. is it just... print MYSTDIN, "my data\n"; and then a .. while(MYSTDOUT) { ... } I think you will

Embperl problem (newbie question?)

1999-12-18 Thread Ed Greenberg
Just trying out Embperl, and I discovered that (in my test of dynamic tables) the $maxrow and $maxcol variables are being set to defaults of 100 and 10 respectively and then obeyed, even though the $tabmode variable is set to 17. According to the documentation, these variables should only be

open 2 question

1999-12-18 Thread dreamwvr
hi, i am writing a program using perl and its open2 function as opposed to the open functions as this allows me to both read and write. but since i am only familiar with.. open (MYSTDIN, "myprog args|"); or open(MYSTDOUT, "| myprog args"); i am trying to get my mind around the concept of

Re: Another install question: CGI.pm not found

1999-12-17 Thread Kees Vonk 7249 24549
Can't locate CGI.pm in @INC at /mod_perl-1.21/t/net/perl/cgi.pl line 7. If CGI.pm readable by the user running apache?

Re: Another install question: CGI.pm not found

1999-12-17 Thread Bill Moseley
At 11:13 AM 12/17/99 +0100, Kees Vonk 7249 24549 wrote: Can't locate CGI.pm in @INC at /mod_perl-1.21/t/net/perl/cgi.pl line 7. If CGI.pm readable by the user running apache? Yes. 125) ~ %/usr/local/bin/perl5.00503 -MCGI -e 'print $CGI::VERSION,"\n"' 2.46 Bill Moseley mailto:[EMAIL

Another install question: CGI.pm not found

1999-12-16 Thread Bill Moseley
What obvious thing am I missing? During make test this gets written to the error log: Can't locate CGI.pm in @INC at /mod_perl-1.21/t/net/perl/cgi.pl line 7. Ok, so I print out @INC in cgi.pl. 78) %head t/net/perl/cgi.pl #!/usr/local/bin/perl BEGIN { print STDERR join("\n", @INC), "\n"; }

Re: Another install question: CGI.pm not found

1999-12-16 Thread Bill Moseley
be a problem. Ok, I just download my own copy of perl 5.005_03 and built it in a local directory and used that to build mod_perl. That worked just fine. Question: How do I figure out what's the problem with the new build of 5.005_03? Would posting -V from the various perl's help? Here's how I'm

OT: CGI.pm (stupid) question

1999-12-02 Thread Martin A. Langhoff
hi all, sorry for posting off-topic. Really. Shouldn't. Couldn't. I'm having a stupid problem with an 'upload file' CGI I wrote based on the CGI.pm documentation. The code that is failing is at the end. The file is opened succesfully for writing (I did try and write a

Re: OT: CGI.pm (stupid) question -Solution

1999-12-02 Thread Martin A. Langhoff
Thanks to the great Alex Krohn the problem is solved: I had forgotten to write ENCTYPE='multipart/form-data' in the FORM tag. whoa. Sorry again for posting OT -- - Martin Langhoff @ S C I M Multimedia Technology - - http://www.scim.net | God is real until - - mailto:[EMAIL

Question on STDIN

1999-11-23 Thread John S. Evans
In a perl apache module that I'm writing, I wanted to try to parse the content of a POST myself. According to "Writing Apache Modules with Perl and C", page 438, you should be able to read the content from STDIN using Perl's read() and getc(), and using Perl's file operations. When I use the

Re: Question on STDIN

1999-11-23 Thread Spidaman The Defenestrator
Meanwhile, back at the ranch... $line = STDIN; $r-print("$line\n"); In my response, I get the entire POST content echoed back to me, where I only expected the first line. If I comment out the "print" statement, I don't get anything echoed back (which is what I would expect). It really

Re: Question on STDIN

1999-11-23 Thread Eric L. Brine
When I use the STDIN statement, I get a single line that contains the entire POST content, rather than just the first line of the post. Can anyone think of why that would happen? Here's the snippet of my code: $line = STDIN; $r-print("$line\n"); 1. There might not be more than one

Apache::Sandwich question

1999-11-17 Thread Jason Bodnar
Can somebody tell me why Apache::Sandwich will only work with GET requests? I took a quick look at the code and am not picking it up. I'm guessing that the post parameters aren't set up for the subrequest and that's the problem? Wouldn't it be as simple as setting the subr content to the original

Apache server config question

1999-11-17 Thread anan kandimalla
I got the Apache web server installed on my WinNT workstation and I also got Perl interpreter installed on it too. I am able to run perl scripts on my workstation browser. My workstation is not connected to the internet. When I try to print the Environment varibales in my CGI script, the

Re: Apache::Sandwich question

1999-11-17 Thread Vivek Khera
"JB" == Jason Bodnar [EMAIL PROTECTED] writes: JB Can somebody tell me why Apache::Sandwich will only work with GET JB requests? I took a quick look at the code and am not picking it JB up. I'm guessing that the post parameters aren't set up for the JB subrequest and that's the problem?

Re: silly perl question

1999-11-12 Thread Mark D. Landry
and silly question friend of mine just learning perl has asking me what does 'string'; means. Perl seems just silently ignores this 'statement' No warning, no action. Is it a known feature ? Regards, Oleg _ Oleg

Re: silly perl question

1999-11-12 Thread Eric L. Brine
sorry for offtopic next time, use comp.lang.perl.misc silly question no such thing friend of mine just learning perl has asking me what does 'string'; means. Perl seems just silently ignores this 'statement' No warning, no action. Is it a known feature ? In perl and C, an expression

Re: Question about caching

1999-11-08 Thread Spidaman The Defenestrator
Make your handler aware of the mime type and suppress the expiration/cache headers if it's image/* or something like that. Meanwhile, back at the ranch... I have a directory of images use for navigation purposes, but when generating dynamic pages with: sub handler {

Question about caching

1999-11-07 Thread Craig Bullock
I have a directory of images use for navigation purposes, but when generating dynamic pages with: sub handler { $r = shift; ... $r-header_out("Pragma","no-cache"); $r-header_out("Cache-control","no-cache"); $r-no_cache(1); $r-send_http_header; page to follow }

Re: No-Cache Question ?

1999-10-29 Thread Cliff Rayman
I use the following with regular headers, but try it with err headers to see if it works as well: $r-err_header_out("Pragma","no-cache"); $r-err_header_out("Cache-control","no-cache"); cliff rayman genwax.com Naren Dasu wrote: Hi, I am doing some testing with a

No-Cache Question ?

1999-10-28 Thread Naren Dasu
Hi, I am doing some testing with a Apache/mod_perl server. And since it is still under development, I do get an occasional server error ;-) . How can I set no-cache on the Error Pages that the server generates ? I need to do this because the brower that I am using is very

Embperl [$ sub $] question

1999-10-19 Thread Jason Bodnar
Can the new sub meta-command not be used to define functions? I tried: [$ sub foo $] [+ shift +] [$ endsub $] [+ sub("bar") +] and got 0. --- Jason Bodnar + [EMAIL PROTECTED] + Tivoli Systems That boy doesn't know the difference between the Internet and a hair net. -- Jason Bodnar

Re: Embperl [$ sub $] question

1999-10-19 Thread Robert
It should be [- foo("bar") -] - Robert Jason Bodnar wrote: Can the new sub meta-command not be used to define functions? I tried: [$ sub foo $] [+ shift +] [$ endsub $] [+ sub("bar") +] and got 0. --- Jason Bodnar + [EMAIL PROTECTED] + Tivoli Systems That boy doesn't know the

OT: Is there a general question apache mailing list?

1999-10-15 Thread Olsen, James
-parsed , text/html.. But SSI statements aren't being processed - they are still in the HTML code that is delivered to the browser. I'm at wits' end. I would like to post this question on a Apache mailing list because I can seem to find the answer on the apache web site, this apache book, or by sear

RE: sybase / mod_perl / linux question? [OFFTOPIC]

1999-10-10 Thread Gerald Richter
Interesting. I tested an identical setup of Apache/modperl/Embperl/Oracle on NT and Linux, and I experienced a huge slowdown on NT. When I looked into it, I found that the more database-intensive the page, the slower the relative performance of the NT platform. I took that to mean that it

Re: Apache::ASP config question

1999-01-17 Thread Joshua Chamas
Brad Babb wrote: Hi, I'm about to put a site into production using Apache::ASP, and need to have a development side to the site to continue working. I won't to be able to have 2 difference Application, one for the production side, and one for the development side. What do I need to do to

Quick question from newbie

1999-01-16 Thread Ian Mahuron
I'm using mod_perl and have Apache::DBI in my startup.pl file. I usually put my DBI-connect line outside of the handler sub... however, I would like to put the DBI-connect line inside of the sub so I can get the connection info from a couple of 'PerlSetVar' config directives (similar to the way

<    5   6   7   8   9   10