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 only

Re: Matt Wright's formMail

2002-05-13 Thread Lisa Nyman
Hi, Not Matt's Scripts http://nms-cgi.sourceforge.net/scripts.shtml -lisa -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Headers

2002-03-06 Thread Lisa Nyman
Hi, On Wed, 6 Mar 2002, Octavian Rasnita wrote: Why if I use: print $q-header; print$q-start_multipart_form; the result does not contain the result of the first line, but only the form line? print $q-header; prints out HTTP headers like 'Content-type: text/html' and not html code.

Re: Environment Variables help

2002-03-02 Thread Lisa Nyman
Hi, On Sat, 2 Mar 2002, Naika - EV1 wrote: $user = $ENV{'REMOTE_USER'}; ### Not working Note that this is only set for authenticated pages. You didn't mention if your script autheticates or not. Also, you don't need to cross post to both beginners lists. It's best if you pick the most

Re: SSI errors?

2001-12-14 Thread Lisa Nyman
Hi, On Thu, 13 Dec 2001, Steven Vargas wrote: I'm trying to run a Perl program in my .shtml file using this directive: !--#include virtual=/snogtofile.pl?file=home-- I know includes work, because we're using them already. And, I've already got one CGI application running, but this is the

Re: why wont images in webpages created with perl show up?

2001-12-05 Thread Lisa Nyman
Hi, On Wed, 5 Dec 2001, jeremy wrote: Here is a small followup question though. After I moved the files, say, to directory /var/www/html/files and I tried to reference them from the perl generated html with a hard reference... img src=/var/www/html/files/titlePic.gif it didnt

Re: Generating static HTML Pages

2001-12-05 Thread Lisa Nyman
Hi, On Wed, 5 Dec 2001, John Griffiths wrote: I agree, I make update static web site pages routinely, using the methods recommended in other posts to this thread, but rather than flocking files I write the new copy in a 'safe' place and then make a copy of it on the web server. This has

CGI and NAME v. ID

2001-12-03 Thread Lisa Nyman
Hi, The HTML4 spec reads: Each scripting language has its own conventions for referring to HTML objects from within a script. This specification does not define a standard mechanism for referring to HTML objects. However, scripts should refer to an element according to its assigned name.

Re: error reports

2001-10-31 Thread Lisa Nyman
Hi, On Tue, 30 Oct 2001, Guy Tubbs wrote: Does anybody know if it is possible to trap errors in Perl when they occur and then send them with a bit of info with sendmail? Sure it is. In fact, you always want to trap errors in a web app so you can die gracefully and give the user some nice

Re: Docs

2001-10-15 Thread Lisa Nyman
Where's a good place to find documentation in HTML of the CGI and DBI modules? CGI: http://stein.cshl.org/WWW/CGI/ DBI: http://dbi.symbolstone.org/index.html Lisa Wolfisch Nyman [EMAIL PROTECTED] IT Warrior Princess Life is too short to wear ugly underwear. Get the facts at

Re: redirection with perl

2001-09-26 Thread Lisa Nyman
Hi, You can do a couple of things. 1) just print a Location: header like if ($name eq 'invader') { print Location:http://www.foo.com/invader\n\n;; } Or, using CGI.pm, use the redirect function: if ($name eq 'invader') { print redirect('http://www.foo.com/invader');

Re: I'm stuck

2001-09-10 Thread Lisa Nyman
Hi, You need to establish your headers before you print anything. Lisa Wolfisch Nyman [EMAIL PROTECTED] IT Warrior Princess Life is too short to wear ugly underwear. Get the facts at http://quickfacts.census.gov/ On Mon, 10 Sep 2001, Peter Bosmans wrote: But if i comment the 3 lines

Re: I'm stuck

2001-09-10 Thread Lisa Nyman
the headers first. -lisa On Mon, 10 Sep 2001, Lisa Nyman wrote too quickly: You need to establish your headers before you print anything. But if i comment the 3 lines between comment out, then this script will work. (i see the generated HTML-page at my browser) Does anybody see what

Re: Newbie -- got a question

2001-08-07 Thread Lisa Nyman
Hi, On Tue, 7 Aug 2001, Lee Hoffner wrote: use strict; use CGI qw/:standard/; my $dir = param('dir'); #Verify that the requested directory exists. #I imagine I want to say something like: if (-d $dir) { print END; Content-Type: text/html\n\n html body table END

Re: Exec cgi

2001-07-31 Thread Lisa Nyman
Hi, Lotts of things could be going wrong. On Tue, 31 Jul 2001, Tiago Almeida Spritzer wrote: Anybody help me with this question? I have two folders at the server, one with perl files and other with html files. I need that the page index.html execute perl file, and I know that

Re: matching on a variable

2001-07-30 Thread Lisa Nyman
Hi, Have you printed the variable $vars::name to be sure it contains what you think it does? Also, try the grep command: open(LINKS, $statedir/links.dat) or die Error at LINKS: $!\n my @all_matches = grep (/$vars::name/, LINKS); print_link (@all_matches) You can use arguments to grep to get

Re: Dreaded Internal Server Error

2001-07-18 Thread Lisa Nyman
Hi, When a CGI script runs from the command line but not from the web server, a common culprit is permissions. Be sure that anything the script does, like create files, write to files, read files, execute commands, etc, are allowed for the web server user and group. Lisa Wolfisch Nyman [EMAIL