Re: Website problem

2000-07-29 Thread Rodney Broom
...I get in the error.log the message: "Premature end of script headers". Where can I find the "misconfiguration". Have a look at the error log, the message should be something like: "Premature end of script headers: /path/to/script.cgi" This means that the named script is failing to compile.

Re: template kit.....

2000-07-29 Thread Tom Brown
On Fri, 28 Jul 2000, Paul J. Lucas wrote: On Fri, 28 Jul 2000, Denton River wrote: Its been a long time since i have done a jobb without using sessions. I would really like to have this feature included in the kit im using and i think alot of developers are with me on this one.

Re: The Template Toolkit (Re: Templating Systems)

2000-07-29 Thread David Hodgkinson
"mgraham" [EMAIL PROTECTED] writes: Andy Wardley wrote: * The Template Toolkit is *ONLY* a template system. This is a Good Thing. It processes text (HTML, Latex, POD, etc). You can use it under Apache/mod_perl, in stand-alone CGI scripts, or in other environments entirely

Re: Feature sets [was Re: Templating System]

2000-07-29 Thread Frank D. Cringle
Ken Williams [EMAIL PROTECTED] writes: [EMAIL PROTECTED] (Frank D. Cringle) wrote: unconstructive grumble This sounds dreadfully microsoftian. Trashcan: check; Bouncing paperclip: check. Well yeah, if you choose features that nobody cares about, then nobody will care whether the package

Re: Templating system

2000-07-29 Thread Andy Wardley
But you have to recompile the Perl code, which normaly takes more time, then compiling the template to the Perl code. I don't think that this will gain very much speed. (Maybe in case of TT this is more important, because it has to first translate his own language to Perl code, while other

Re: Templating system

2000-07-29 Thread Ask Bjoern Hansen
On Thu, 27 Jul 2000, Paul J. Lucas wrote: On Thu, 27 Jul 2000, Matt Sergeant wrote: http://www.best.com/~pjl/software/html_tree/ Aside from the GPL, it does looks nice. What's wrong with the GPL? It's open-source and free of cost. What more do you want? the

Re: [ANNOUNCE] Apache::Dispatch

2000-07-29 Thread Matt Sergeant
On Fri, 28 Jul 2000, Geoffrey Young wrote: hi Matt... I can't access my normal email from home, so forgive the non-quoting of your message... :) the way I set it up, when running in DispatchMode = Safe (the default, which I didn't mention in the docs), you wouldn't be able to call

Re: Is there a module for getting / setting a Session-ID

2000-07-29 Thread Greg Cope
jeff wrote: The mod_perl eagle book has a good section on saving state information using session ids. And it's not necessarily mod_perl based. Thanks Jeff. I've some code based on parts of the state section - speifically the ideas of URL mungling. Greg -- Jeff Saenz [EMAIL PROTECTED]

was Re: template kit..... - now session handling

2000-07-29 Thread Greg Cope
Gerald Richter wrote: I sure think that this template discussion is intresting, forms autofill is one thing but another thing that i think would be neat is if the kit could do session handling, like the Apache::ASP. Can embperl or mason do this fancy stuff. Embperl can do

Re: template kit.....

2000-07-29 Thread Greg Cope
Tom Brown wrote: On Fri, 28 Jul 2000, Paul J. Lucas wrote: On Fri, 28 Jul 2000, Denton River wrote: Its been a long time since i have done a jobb without using sessions. I would really like to have this feature included in the kit im using and i think alot of developers are with

RE: was Re: template kit..... - now session handling

2000-07-29 Thread Gerald Richter
Hi Greg, Can I recommend you write a simple, standalone module that everyone can use and not just an embperl solution - I'd be willing to help (or write it) if people send me their wants / ideas, and then flame my code when I think its ready! I would be happy if there is an standalone

RE: Templating system

2000-07-29 Thread Gerald Richter
The TT parser uses Perl regexen and an LALR state machine. Embperl's parser have used from the startup only C code, maybe that's the reason why the time this takes (compared to the rest of the request) never was an issue for me... Gerald

Re: was Re: template kit..... - now session handling

2000-07-29 Thread Greg Cope
Gerald Richter wrote: Hi Greg, Can I recommend you write a simple, standalone module that everyone can use and not just an embperl solution - I'd be willing to help (or write it) if people send me their wants / ideas, and then flame my code when I think its ready! I would be

RE: was Re: template kit..... - now session handling

2000-07-29 Thread Gerald Richter
Hi Greg, As far as I am aware (please someone prove me wrong!) the does not appear to be such a module. I meant the module your are about to write :-) Please send me ideas / thoughs and I'll have a go. Embperl currently goes the way that it sets up a tied hash at load time (so it only

Re: Is there a module for getting / setting a Session-ID

2000-07-29 Thread JoshNarins
I have fully implemented URL munging and Cookie support, but SERIOUS troubles start to arise when you start adding the notion of secure sessions. I have done it, but it isn't pretty. Basically, there are three types of pages. Normal, Secure, and Secure (but you don't need a Secure Url Munging).

Re: was Re: template kit..... - now session handling

2000-07-29 Thread Ian Kallen
Today, Greg Cope [EMAIL PROTECTED] frothed and...: one of your parents sister. The only major issue is that I cannot appear to use posted values as they appear to get lost in the redirect (Clues wanted !). Redirecting a POST request? Yup, expediency often requires violating the HTTP spec.

Apache::PerlVINC makes Apache segfault

2000-07-29 Thread Patrick
Hi all, (debian potato) apache-ssl : 1.3.9.13-2 modperl : 1.21.2309-1 perl : 5.005 Apache::PerlVINC : 0.01 compiled by myself As recommended in the guide, i'm trying to use Apache::PerlVINC since I have 3 virtualhosts, and the same sets of modules for all three (same namespace), in three

Re: was Re: template kit..... - now session handling

2000-07-29 Thread Greg Cope
Gerald Richter wrote: Hi Greg, As far as I am aware (please someone prove me wrong!) the does not appear to be such a module. I meant the module your are about to write :-) Please send me ideas / thoughs and I'll have a go. Embperl currently goes the way that it sets up a

How to use warnings in Apache::ASP?

2000-07-29 Thread Philip Mak
Is there a way to make it so that all Apache::ASP scripts on my site have "use warnings;" on by default (something analogous to PerlSetVar Strict 1 and use strict;)? Or do I just have to put "use warnings;" in every file? I searched the nodeworks.com/asp site (keyword warning/warnings) as well

Apache::Session : DBI-Too many connections

2000-07-29 Thread Frédéric Schwien
Hi , I am using Perl 5.6.0 whith MySql 3.22.32 , Apache 1.3.12 , modperl 1.24 . On our Production Server , Apache error logs are showing sometimes : [Thu Jun 8 14:53:34 2000] [error] DBI-connect failed: Too many connections at /usr/local/lib/perl5/site_perl/5.6.0/Apache/Session/

Apache::ASP, Session Management and the Fun

2000-07-29 Thread Issam W. Alameh
Hello, I am having a lot of fun with Apache::ASP and the session management with it and I really recommend any body who hasn't used it to try it, Just for FUN. I have a question here, has any body stored sessions in mysql with Apache::ASP. what is the pros and cons of doing that and How . Any

Re: Templating system

2000-07-29 Thread Matt Sergeant
On Sat, 29 Jul 2000, Leslie Mikesell wrote: According to Gerald Richter: The TT parser uses Perl regexen and an LALR state machine. Embperl's parser have used from the startup only C code, maybe that's the reason why the time this takes (compared to the rest of the request) never

general question regarding sessions

2000-07-29 Thread me
I came to a web application development(modperl) in a middle way. The existing session management is basically save pairs of info(user:xxx...) into a /tmp file named clientip-random#-random#-timestamp, and use a similar format cookie to find corresponding session in /tmp to do authentication.

Re: template kit.....

2000-07-29 Thread Denton River
Ofcourse i can use different pieces of software,, But that was not my point I *want* to have the session management in the same kit becouse it´s convinient. I have to tell my team what software to use and maby even teach them how to use it, I find it alot easier to do this with one kit. Best

Overriding print in cgi scripts

2000-07-29 Thread Chetan Patil
Hello, We have a large code base printing header, body and footers to the STDOUT from the cgi scripts. Since all these are print statements, we have to go to extreme measures to make sure we donot print the content more than once. To clean things up (or at least start at it), we want to be able

require bug?

2000-07-29 Thread Philip Mak
I noticed that the following bit of code does not work properly: require 'test.pl'; chdir '..'; require 'test.pl'; Even though the second require is trying to load a different file, perl thinks that it is the same file and therefore doesn't require it again (I had to use the 'do' command

Re: How to use warnings in Apache::ASP?

2000-07-29 Thread Joshua Chamas
Philip Mak wrote: Is there a way to make it so that all Apache::ASP scripts on my site have "use warnings;" on by default (something analogous to PerlSetVar Strict 1 and use strict;)? Or do I just have to put "use warnings;" in every file? I searched the nodeworks.com/asp site (keyword

Re: Apache::Session : DBI-Too many connections

2000-07-29 Thread Bryan McGuire
Mysql accepts a maximum of 100 connections. This probably means you have MaxClients set at a number larger than this. If you are serving all of your files, including static html and graphics, through one mod_perl enabled apache, run the top command and prepare to pick your jaw off the floor.

Re: was Re: template kit..... - now session handling

2000-07-29 Thread Joshua Chamas
Greg Gerald, I wanted to bring an important issue that came up with Apache::ASP, how will you deal with search engines indexing the session-ids in the URL? In Apache::ASP, this is handled a couple of ways, first the session-id is stored as a query string param, not in the path to give a

Re: Feature sets [was Re: Templating System]

2000-07-29 Thread Perrin Harkins
On Fri, 28 Jul 2000, Drew Taylor wrote: After all this discussion, what would benefit me most in choosing my next template system would be a concise central repository of the features benefits for the major template systems (TT, Apache::ASP, Embperl, Mason, HTML::Template come to mind

Re: Templating system

2000-07-29 Thread Perrin Harkins
On Fri, 28 Jul 2000, Drew Taylor wrote: Andy Wardley wrote: And the REALLY, REALLY smart ones (i.e. TT2) can write the Perl code to disk for persistance of compiled templates. That way, the templates never need to be re-compiled (i.e. from TT syntax to Perl code) unless you change

Re: The Template Toolkit (Re: Templating Systems)

2000-07-29 Thread Joshua Chamas
Dmitry Beransky wrote: At 09:58 AM 7/24/00, mgraham wrote: For instance, I would like a backend web application to be able to learn about form fields from the template tags: [% input type='text' name='email' required=1 validate_as='email_address' %] That's where the XForm may come

Re: How to use warnings in Apache::ASP?

2000-07-29 Thread Joshua Chamas
Philip Mak wrote: I just tried doing the global.asa thing, but I realized another problem. Recently, I installed a new version of perl on my system (upgraded 5.00503 to 5.6). Something went wrong though; Apache::ASP is still using the old version of perl. If I run /usr/bin/perl,

RE: The Template Toolkit (Re: Templating Systems)

2000-07-29 Thread Ian Kallen
XForm sounds just like something I need actually, can any of the XSLT tools transform it? In perl, of course, XML::XSLT, Sablotron (which doesn't compile on FreeBSD btw, feh!)? Yesterday, Dmitry Beransky [EMAIL PROTECTED] frothed and gesticulated...: That's where the XForm may come quite