Re: How to access $ENV{UNIQUE_ID} ????????

2001-06-12 Thread Karthik Krishnamurthy
apache also has directives to restrict env variables passed to cgi scripts. search for something like UnsetEnv in httpd.conf. search for the directives that match direcories in which both the scripts reside. something sould turn out. /kk On Wed, 13 Jun 2001, Kevin Hancock wrote: > > > > > m

beginner's addressbook tutorial - step 4 - The perl handler

2001-06-12 Thread fliptop
step 4 is complete, and is available at: http://www.peacecomputers.com/addressbook_toot-step4.html also, there is a table of contents available at http://www.peacecomputers.com/addressbook_toot-toc.html coming next - step 5 - the start method and our first HTML::Template file side note: i d

Re: How to access $ENV{UNIQUE_ID} ????????

2001-06-12 Thread Kevin Hancock
> > > my $uniqueid = $ENV{'UNIQUE_ID'}; > >you can read all about this feature of apache at > >http://httpd.apache.org/docs/mod/mod_unique_id.html > >if you're not running a recent version of apache web server, then this >environment variable won't be available. Thanks for the link it explains

Re: How to access $ENV{UNIQUE_ID} ????????

2001-06-12 Thread fliptop
Kevin Hancock wrote: > > Hi > I am having trouble accessing this value. I would love to be able to use it > but it does not appear to be set. > > I have a script written by someone else who I can no longer ask that is > called from a form on my server and one of the first things it does is: > >

How to access $ENV{UNIQUE_ID} ????????

2001-06-12 Thread Kevin Hancock
Hi I am having trouble accessing this value. I would love to be able to use it but it does not appear to be set. I have a script written by someone else who I can no longer ask that is called from a form on my server and one of the first things it does is: my $uniqueid = $ENV{'UNIQUE_ID'}; My

Re: Perplexing header problem

2001-06-12 Thread Hasanuddin Tamir
On Tue, 12 Jun 2001, Peter Cline <[EMAIL PROTECTED]> wrote, > Last week I opted to use the CGI.pm module to print headers for me since I > was having trouble using print "Content-type: text/html \n\n" That's good, but CGI.pm is actually not for printing header only. > Now, I am being told that

RE: javascript within print "<

2001-06-12 Thread Curtis Poe
--- "Tillema, Glenn" <[EMAIL PROTECTED]> wrote: > Here is how I do it; > > #!/usr/local/bin/perl -w > use CGI; > > print header(); > print "\n", > " test script\n"; > print < >alert('test'); > > DONE > print "\n"; As written, this script won't work. If you call the 'header()' fun

Re: Whats my problem, among other things?

2001-06-12 Thread Kevin Meltzer
I am redirecting this question to the beginners-cgi list. Please respond to the original poster ([EMAIL PROTECTED]) and the beginners-cgi list, not the beginners list. Thank you. Cheers, Kevin On Tue, Jun 12, 2001 at 04:23:47PM -0600, T&R Customer Service ([EMAIL PROTECTED]) spew-ed forth: >

RE: Circular reference

2001-06-12 Thread Andreas Skoglund
In the code you sent along you had misspelled the ACTION parameter in the form tag. (ACTON) If that is true the page will call itself and cause the nuisance. =) /Andréas Skoglund On Tue, 12 Jun 2001, Kris Cook wrote: > Well, I did note that I had omitted the METHOD="POST" statement. However,

Re: javascript within print "<

2001-06-12 Thread Justin Simoni
> open(JAVASCRIPT, "javascript.js"); > while(){print $_} > close(JAVASCRIPT); that's wasteful, HTML already has the tag attribute. -- justin simonihttp://skazat.com __ Steven Wright:

Perplexing header problem

2001-06-12 Thread Peter Cline
Last week I opted to use the CGI.pm module to print headers for me since I was having trouble using print "Content-type: text/html \n\n" Now, I am being told that the following file is not producing a valid header. Anyone see why this might be the case? "bugtrack_admin.cgi" 28 lines, 1065 cha

RE: javascript within print "<

2001-06-12 Thread Tillema, Glenn
Here is how I do it; #!/usr/local/bin/perl -w use CGI; print header(); print "\n", " test script\n"; print < alert('test'); DONE print "\n"; cheers, Glenn Glenn Tillema [EMAIL PROTECTED] ADC Telecommunications, Inc. PO Box 1101, MS 508 Minneapolis, MN 55440-1101

Re: javascript within print "<

2001-06-12 Thread Luinrandir Hernson
Just call it from perl print "\n\n"; print "web site\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; exit; - Original Message - From: [EMAIL PROTECTED] To: CGI Beginners Sent: Tuesday, June 12, 2001 4:41 PM Subject: ja

Re: javascript within print "<

2001-06-12 Thread WebMaster AIM-US
Another option is to put the JavaScript in the text file, and have Perl read from that file, and print it directly. This means you can re-use the JavaScript code in other similar script without needing to edit each script when the JavaScript need changing: open(J

Re: javascript within print "<

2001-06-12 Thread Justin Simoni
try something like this: #!/usr/bin/perl use CGI qw(:standard); $javascript = <$javascript); print p(a({-href=>'javascript:annoy()'}, "Click me to be annoyed")); -- justin simonihttp://skazat.com __

javascript within print "<

2001-06-12 Thread charles
i have a script that generates html. i would like to put some javascript in the tags which is being generated, but escaping the javascript is a nightmare. does the print "<

permission question

2001-06-12 Thread Luinrandir Hernson
I want to let other people put my webpages on their site. I want to control the contents of the web page without changing their code. I am going to make up a web page of .pl's that just type the html code for them as below. My question is what permission (775?) must i set the .pl's at so that a 3

Re: Re: error message

2001-06-12 Thread Mark Bergeron
Or maybe you could write a simple sub that catches any anomolies at run time and produces an Error message of your choosing. There is a good example of this in Chap. 5 of CGI Programming with Perl. You can also find the example from the chapter here: http://examples.oreilly.com/cgi2/ Good Luck

Re: error message

2001-06-12 Thread Geraint Jones
Try putting the following at the beginning of your script, it helps a lot with debugging CGI: use CGI::Carp qw/fatalsToBrowser/; Instead of getting the usual Internal Server error, it displays the error in your browser. Of course, make sure you have CGI first.

Re: error message

2001-06-12 Thread fliptop
Gary Stainburn wrote: > > This is what you get when you run a CGI and the cgi terminated before > generating any valid output. Usually this happens if the perl script > doesn't compile and therefore doesn't run. > > try 'perl -c

Re: error message

2001-06-12 Thread Gary Stainburn
This is what you get when you run a CGI and the cgi terminated before generating any valid output. Usually this happens if the perl script doesn't compile and therefore doesn't run. try 'perl -c

error message

2001-06-12 Thread Sally
Anyone know what this means: Premature end of script headers: I found it in my server error log, after I got an internal server error message when I tried to look at a new page I'd created.

RE: Circular reference

2001-06-12 Thread Kris Cook
Well, I did note that I had omitted the METHOD="POST" statement. However, that didn't fix it. Oddly, adding a text field to the form solved the problem. I know that isn't necessary by HTML standards, so I am once again scrutinizing Personal Web Server as the potential culprit. Since I did need