cgi put script?

2002-07-15 Thread greeniize
Hi, I'm trying to get the "put" function from Netscape, to work with Apache. 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. I just get "server error" messages, because perl doesn't lik

RE: Subroutines

2002-07-15 Thread Joel Hughes
Theresa, one way to go about this is to create your own module which has the connection details in it (or reads from ENV/external XML file etc) and also has your data access subroutines. Then instantiate instances of this modules whereever you need to. This is the best URL I can find which talks

RE: Displaying counter

2002-07-15 Thread Kristofer Hoch
Amen brother! Original Message Follows From: Camilo Gonzalez <[EMAIL PROTECTED]> To: 'Jim Lundeen' <[EMAIL PROTECTED]>, begin begin <[EMAIL PROTECTED]> Subject: RE: Displaying counter Date: Mon, 15 Jul 2002 15:01:44 -0500 Dude, Make it easy on yourself, use an animated GIF. It's clos

RE: Form.pm (next instalment of code review)

2002-07-15 Thread Michael Dreksler
Guys, Can I just say I am getting a lot out of reading your discussion here. Definitely to be encouraged :-) Michael -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Displaying counter

2002-07-15 Thread Jim Lundeen
thank you!!! fliptop wrote: > Jim Lundeen wrote: > > > I have the following in my HTML output: > > > > > >> the message to actually show the active counter... 600 changes to 599, > > then 598, and so on... > > there's a script available from http://javascript.internet.com that does > this

Re: Displaying counter

2002-07-15 Thread fliptop
Jim Lundeen wrote: > I have the following in my HTML output: > > >the message to actually show the active counter... 600 changes to 599, > then 598, and so on... there's a script available from http://javascript.internet.com that does this very thing. i've used it and it works very we

RE: Displaying counter

2002-07-15 Thread Camilo Gonzalez
Dude, Make it easy on yourself, use an animated GIF. It's close enough. You don't really mean 600 seconds do you? -Original Message- From: Jim Lundeen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 2:58 PM To: begin begin Subject: Displaying counter Hello all, I know this prob

Displaying counter

2002-07-15 Thread Jim Lundeen
Hello all, I know this probably isn't the appropriate list for my question, but I don't want to receive email on other lists too! So, if you know the answer, I'd appreciate your help... I have the following in my HTML output:

RE: Subroutines

2002-07-15 Thread Camilo Gonzalez
Theresa, Paul Duboise in his book Perl and MySQL puts all connection schemes in a library. Would that work for you? -Original Message- From: Theresa Mullin [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 2:31 PM To: [EMAIL PROTECTED] Subject: Subroutines Hi Everyone, I am writ

File Storage

2002-07-15 Thread Balint, Jess
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 under its own user. So where am I to put the dbm files at? Shall I create a fol

Subroutines

2002-07-15 Thread Theresa Mullin
Hi Everyone, I am writing a program in which I am connecting to an oracle database. I would like to put the environment variables and the connection routine into a separate subroutine, so I don’t have to keep re-copying the code. What’s the best way to go about this? Thanks, Theresa Theresa

Re: Why "Premature end of script headers"?

2002-07-15 Thread perl-dvd
Yes, your right. It seems to me there has got to be a more efficient way to accomplish what is being attempted. Right now, the solution is making a copy of the file, then checking every line of the original against every line of the copy. This method becomes exponentially more processor

RE: Why "Premature end of script headers"?

2002-07-15 Thread Bob Showalter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 12:23 PM > To: 'Octavian Rasnita'; [EMAIL PROTECTED] > Subject: Re: Why "Premature end of script headers"? > > > > Probably your web server is timing out the request and killing your >

Re: Why "Premature end of script headers"?

2002-07-15 Thread perl-dvd
> Probably your web server is timing out the request and killing your > script. Web servers don't like to run long-running processes like > this. Perhaps you can fork off a child and have the child take care > of it. Another solution is to have something like the following in your loop: -

Re: Why "Premature end of script headers"?

2002-07-15 Thread Lisa Nyman
Hi, On Mon, 15 Jul 2002, Octavian Rasnita wrote: > I've made a little script that takes the lines from a file, removes the > dupplicate lines and prints the result to a new file. > The problem is that after printing almost 10% from the original file into > the new file, the script dies and the o

RE: Why "Premature end of script headers"?

2002-07-15 Thread Bob Showalter
> -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 8:18 AM > To: [EMAIL PROTECTED] > Subject: Why "Premature end of script headers"? > > > Hi all, > > I've made a little script that takes the lines from a file, > removes the > dupplic

Why "Premature end of script headers"?

2002-07-15 Thread Octavian Rasnita
Hi all, I've made a little script that takes the lines from a file, removes the dupplicate lines and prints the result to a new file. I've read the original file line by line because it is a big file (over 7 MB). The problem is that after printing almost 10% from the original file into the new fi

Re: Counting the time with fractions of a second. The solution!

2002-07-15 Thread perl-dvd
Teddy, Because times is a perl function, not necessarily a var. Here's what one of my perl books has to say about it: --- The times function returns the amount of job time consumed by this program and any child processes of this program.

Re: graphic on-the-fly

2002-07-15 Thread zentara
On Mon, 15 Jul 2002 15:03:45 +0200, [EMAIL PROTECTED] (Konrad Foerstner) wrote: >Hey folks, > >I would like to have a script which >produces graphics on the fly,b ut there >are some problems: > >- When I write the graphic-file to /tmp/ > I can't open it by writing > in the page the script p

Re: graphic on-the-fly

2002-07-15 Thread Felix Geerinckx
on Mon, 15 Jul 2002 13:03:45 GMT, Konrad Foerstner wrote: > I would like to have a script which > produces graphics on the fly,b ut there > are some problems: See Randal Schwartz' Web Techniques Column 60 on "Embedding a dynamic image in CGI output" at

Benchmarking

2002-07-15 Thread Camilo Gonzalez
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 areas. #!/usr/local/bin/perl print <<' EOF' Camilo Gonzalez

graphic on-the-fly

2002-07-15 Thread Konrad Foerstner
Hey folks, I would like to have a script which produces graphics on the fly,b ut there are some problems: - When I write the graphic-file to /tmp/ I can't open it by writing in the page the script produces. But the pictures is verifiable there. - So, I tryed an alternativ: Pictures

Re: Check disc quota

2002-07-15 Thread fliptop
Mike(mickalo)Blezien wrote: > I am new to this list, so if this not the proper list to send this too, I would > appreciate the name of the appropriate list. it's not the correct list. this is a beginners-cgi list. i would suggest the beginners mailing list. point your browser to learn.perl.