RE: Couple of newbie questions

2002-07-16 Thread Joel Hughes
Hi Ker, It'll be the web server which is handling the requests obviously - probably Apache. If your running Perl CGI without mod perl installed in Apache then each request for the CGI will, I believe, cause another external process to be created invoking the system Perl compiler, the compiled resu

Re: Couple of newbie questions

2002-07-16 Thread perl-dvd
Kerr, Apache spawns a child for each web connection, while doing this, if a cgi script is called, it pulls a copy of the script into memory, executes it. Ways to debug: Yes Apache does have an error log, search your httpd.conf for "ErrorLog". That like specifies where Apache will write

Re: Couple of newbie questions

2002-07-16 Thread fliptop
Kerr Wall wrote: > How does perl handle multiple requests. For example, if 10 users are > logged into your system and they are all trying to use the same script, > how does perl deal with this situation? unless you're running mod_perl, a separete perl interpreter will start for each request

Couple of newbie questions

2002-07-16 Thread Kerr Wall
Hi All, I am currently switching to Perl/CGI from the Java servlet world. I'm wishing I would have made this switch a long time ago and I have a couple of questions: How does perl handle multiple requests. For example, if 10 users are logged into your system and they are all trying to use t

cgi put script?

2002-07-16 Thread greeniize
Hi, Thanks to everyone for the suggestions- I have not tried many of them. There does not seem to be much documentation, for this function. I need some time for further "experimenting", and will let you know the results. Thanks! Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: File Storage

2002-07-16 Thread zentara
On Mon, 15 Jul 2002 15:26:56 -0400, [EMAIL PROTECTED] (Jess Balint) wrote: >Hello all. I just have a quick question. I am writing a small guestbook >program to put into a web site. I want to put the information into a DBm >file. The web site host says 'cgi-bin access'. I know apache usually runs

Re: Benchmarking

2002-07-16 Thread zentara
On Mon, 15 Jul 2002 08:30:45 -0500, [EMAIL PROTECTED] (Camilo Gonzalez) wrote: >Good Kind Perl Gurus, > >I see mention of benchmarking CGI scripts to see how quickly they run. >What's the best way to do this? I'm in a hosted Unix IRIX environment so may >not have access to the shell and other ar

Re: cgi put script?

2002-07-16 Thread Connie Chan
> I'm trying to get the "put" function from Netscape, to work with Apache. What is the "put function" ? > I have a windows OS (NT server), and I'm using the windows version of perl > as a cgi script interpreter. The problem is, the put script won't work > with perl. Have you correctly set the

Re: cgi put script?

2002-07-16 Thread Aaron Dalton
If you're using CGI.pm that comes with perl, it's POD documentation gives an example of how to upload a file. Search for the header "CREATING A FILE UPLOAD FIELD" That example code has worked just fine for me. Your file system permissions *have* to be set properly though. In Unix/Linux that's

RE: cgi put script?

2002-07-16 Thread Joel Hughes
Hi Steve, is this the HTTP PUT method we are talking about which allows resources to be written to a web server? If so, obviously the 'out of the box' config for most webservers (inc Apache) wont allow the anonymous user to write files to the servers file system (security risk no?). To alter this