Re: handlers

2006-08-01 Thread Enno
John ORourke wrote: I would strongly recommend using one of the well used frameworks. You can find more info and tutorials from the links on this page: http://perl.apache.org/products/app-server.html How come Catalyst is not on that page? Someone might as well add it. Enno

Re: handlers [OT]

2006-08-01 Thread Jonathan Vanasco
On Aug 1, 2006, at 10:45 AM, John ORourke wrote: Excellent, I'd never heard of that. I only found out about Class::DBI yesterday too - next thing you'll be telling me there's a guide that picks out the most useful CPAN modules to stop people reinventing the wheel! Personally, I disliked

Re: handlers [OT]

2006-08-01 Thread Michael Peters
John ORourke wrote: > > Michael Peters wrote: > >> John ORourke wrote: >> >> >>> You could even do something really clever and make it map URI onto >>> module - eg. so /debitor/contract/create calls >>> Debitor::Contract->create(), but that wouldn't be very secure! >>> >> >> You could use

Re: handlers [OT]

2006-08-01 Thread John ORourke
Michael Peters wrote: John ORourke wrote: You could even do something really clever and make it map URI onto module - eg. so /debitor/contract/create calls Debitor::Contract->create(), but that wouldn't be very secure! You could use something like Apache::Dispatch to achieve this or

Re: handlers

2006-08-01 Thread Michael Peters
John ORourke wrote: > You could even do something really clever and make it map URI onto > module - eg. so /debitor/contract/create calls > Debitor::Contract->create(), but that wouldn't be very secure! You could use something like Apache::Dispatch to achieve this or CGI::Application::Dispatch

RE: handlers

2006-08-01 Thread Frank Maas
> Frank Maas wrote: > >> On Tue, Aug 01, 2006 at 07:33:51AM +0100, John ORourke wrote: >> >> >>> You could even do something really clever and make it map URI onto >>> module - eg. so /debitor/contract/create calls >>> Debitor::Contract->create(), but that wouldn't be very secure! > > As descri

Re: handlers

2006-08-01 Thread John ORourke
Vladimir S. Tikhonjuk wrote: John ORourke пишет: Vladimir S. Tikhonjuk wrote: O.K. Thanks for answer :) I want to write rather big project. How I have to construct it: I mean, should I make a lot of handlers, like, /debitor, /debitor/documents, /debitor/documents/contracts Or, c

Re: handlers

2006-08-01 Thread John ORourke
Frank Maas wrote: On Tue, Aug 01, 2006 at 07:33:51AM +0100, John ORourke wrote: You could even do something really clever and make it map URI onto module - eg. so /debitor/contract/create calls Debitor::Contract->create(), but that wouldn't be very secure! Why would that be not very

Re: handlers

2006-08-01 Thread Frank Maas
On Tue, Aug 01, 2006 at 07:33:51AM +0100, John ORourke wrote: > > You could even do something really clever and make it map URI onto > module - eg. so /debitor/contract/create calls > Debitor::Contract->create(), but that wouldn't be very secure! > Why would that be not very secure? Could you g

Re: handlers

2006-08-01 Thread Vladimir S. Tikhonjuk
John ORourke пишет: > Vladimir S. Tikhonjuk wrote: > >> >> O.K. Thanks for answer :) >> I want to write rather big project. How I have to construct it: I mean, >> should I make a lot of handlers, like, /debitor, /debitor/documents, >> /debitor/documents/contracts Or, create *.pl scripts. Or m

Re: handlers

2006-07-31 Thread John ORourke
Vladimir S. Tikhonjuk wrote: O.K. Thanks for answer :) I want to write rather big project. How I have to construct it: I mean, should I make a lot of handlers, like, /debitor, /debitor/documents, /debitor/documents/contracts Or, create *.pl scripts. Or may be there is another theory ?

Re: handlers

2006-07-31 Thread Vladimir S. Tikhonjuk
Scott Penrose пишет: > > On 01/08/2006, at 15:50, Vladimir S. Tikhonjuk wrote: > >> >> So, as I understant, If I want authenticate user before seeing every >> page, I have to put >> >> >> PerlAuthenHandler Promtelecom::Authentication >> AuthType Basic >> AuthName "Promtelecom Network" >> Require

Re: handlers

2006-07-31 Thread Scott Penrose
On 01/08/2006, at 15:50, Vladimir S. Tikhonjuk wrote: So, as I understant, If I want authenticate user before seeing every page, I have to put PerlAuthenHandler Promtelecom::Authentication AuthType Basic AuthName "Promtelecom Network" Require valid-user to be the first one. Then, If I wan

Re: handlers

2006-07-31 Thread Vladimir S. Tikhonjuk
Scott Penrose пишет: > > On 01/08/2006, at 15:30, Vladimir S. Tikhonjuk wrote: > >> Hi everyone! >> >> I have Authentication handler, which I set like: >> >> >> PerlAuthenHandler Promtelecom::Authentication >> AuthType Basic >> AuthName "Promtelecom Network" >> Require valid-user >> >> >> Alseo

Re: handlers

2006-07-31 Thread Scott Penrose
On 01/08/2006, at 15:30, Vladimir S. Tikhonjuk wrote: Hi everyone! I have Authentication handler, which I set like: PerlAuthenHandler Promtelecom::Authentication AuthType Basic AuthName "Promtelecom Network" Require valid-user Alseo I have 2 simple PerlHandler's

RE : Handlers/locations

2004-02-04 Thread Hemond, Steve
D] > Sent: Wednesday, February 04, 2004 10:15 AM > To: [EMAIL PROTECTED] > Subject: Re: Handlers/locations > > > I had the same issue when I installd modperl. > > My solution was to put everything Perlish in the "root", > with plain HTML stylesh

Re: Handlers/locations

2004-02-04 Thread Michael C. Davis
I had the same issue when I installd modperl. My solution was to put everything Perlish in the "root", with plain HTML stylesheets and images under it. So it looked like this: /htdocs/myapp <-- executable Perl /htdocs/myapp/img <-- not executable /htdocs/myapp/css <-- not executable htdocs/my

Re: Handlers/locations

2004-02-04 Thread Geoffrey Young
> The best solution for me is to have all perl and html files in the root > directory, and have the images under the /images/ subdirectory, and > maybe the stylesheets in the /style/ subdirectory. > > What would be the best httpd.conf configuration to do that? > none of this is really a mod_per

RE: RE : Handlers vs Perl scripts

2004-01-27 Thread Gary Barnett
EMAIL PROTECTED] Subject: RE : Handlers vs Perl scripts Could anyone explain me why having perl files like : printf (" blahblahb"); printf ("My name is %s",$name); Is a wrong idea? :-) Steve Hemond Programmeur Analyste / Analyst Programmer Smurfit-Stone, Ressources Foresti

RE : Handlers vs Perl scripts

2004-01-27 Thread David R. Baird
On 27 Jan 2004 at 15:45, Hemond, Steve wrote: > Could anyone explain me why having perl files like : > > printf (" blahblahb"); > printf ("My name is %s",$name); > > Is a wrong idea? :-) Because that's not all you will have. You will have printf (" blahblahb"); printf ("My name is %s",$name);

Re: Handlers vs Perl scripts

2004-01-27 Thread Garth Webb
On Tue, 2004-01-27 at 12:45, Hemond, Steve wrote: > Could anyone explain me why having perl files like : > > printf (" blahblahb"); > printf ("My name is %s",$name); > > Is a wrong idea? :-) For one, most HTML pages will probably contain more than one tag and more than two lines of text. Take t

RE : Handlers vs Perl scripts

2004-01-27 Thread Hemond, Steve
833 [EMAIL PROTECTED] > -Original Message- > From: David R. Baird [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 27, 2004 12:13 PM > To: [EMAIL PROTECTED] > Subject: Re: Handlers vs Perl scripts > > > Really, everything you are trying to do is made so much easier

Re: Handlers vs Perl scripts

2004-01-27 Thread David R. Baird
Really, everything you are trying to do is made so much easier in Mason. Have you tried the Mason list for help with your bugs? Embedding html inside perl scripts is not the way to go - it'll get very unwieldy very quickly. If you put most of your functions into modules (eg for db access), t

Re: Handlers vs Perl scripts

2004-01-27 Thread Clayton Cottingham
i use handlers! usually with HTML::Template or XML::LibXML // XML::LibXSLT to handle the content /layout pieces! On Tue, 2004-01-27 at 10:40, Paul Simon wrote: > --- "Hemond, Steve" <[EMAIL PROTECTED]> wrote: > > > > Instead of embedding perl code in html files to > > generate stuff from a > >

Re: Handlers vs Perl scripts

2004-01-27 Thread Paul Simon
--- "Hemond, Steve" <[EMAIL PROTECTED]> wrote: > > Instead of embedding perl code in html files to > generate stuff from a > database, I would just have to write an entire perl > file that will print > the html code (like the example I've shown above) > and do the > manipulations on the database