Embperl vs. Mason

2000-02-14 Thread Andre Landwehr
Hi, I made some pages with Embperl, but I don't know Mason. Yesterday a friend told me of Mason, but he does not know Embperl very well. Now I wonder about the pros and cons of each, not only in respect to performance but also general usability, bugs etc. What do more experienced web programmers

RE: ANNOUNCE: HTML::Embperl 1.3b2

2000-02-14 Thread Gerald Richter
Yes, that makes sense. Perhaps an optional argument for Execute that lists the variables to export? yes, that's what I want to do Actually, there has to be a way to get variables in both directions. Perhaps an export list and an import list in the params to Execute? one list should be

RE: Embperl vs. Mason

2000-02-14 Thread Gerald Richter
Hi, I made some pages with Embperl, but I don't know Mason. Yesterday a friend told me of Mason, but he does not know Embperl very well. Now I wonder about the pros and cons of each, not only in respect to performance but also general usability, bugs etc. What do more experienced web

Re: Embperl vs. Mason

2000-02-14 Thread Joshua Chamas
Andre Landwehr wrote: Hi, I made some pages with Embperl, but I don't know Mason. Yesterday a friend told me of Mason, but he does not know Embperl very well. Now I wonder about the pros and cons of each, not only in respect to performance but also general usability, bugs etc. What do

Re: Embedded Perl XML Extensions ...

2000-02-14 Thread Matt Sergeant
On Mon, 14 Feb 2000, Joshua Chamas wrote: XSLT seems to seriously complicate the XML rendering issue, and perhaps unnecessarily? Has it occurred to anyone that XSLT is just another programming language, and one that looks like an HTML doc? There are those who hold that opinion. But because

Cookies

2000-02-14 Thread Francesco Marsoni
Hello. I'm trying to write an access handler for Apache - mod_perl Inside the handler subI would like to send a cookie if the access is forbidden. But the following lines doesn't work: $r-err_headers_out-add('Set-Cookie' = $cookie);return FORBIDDEN; when FORBIDDEN is returned no cookie is

Re: Apache::ASP HTTP's validation model

2000-02-14 Thread Matt Sergeant
On Mon, 14 Feb 2000, Joshua Chamas wrote: Aaron Ross wrote: hi Dmitry! Wouldn't it be great it someone came up with a general solution for this... some kind of logical class from which you could inherit and implement the necessary methods. There was an interesting thread

Re: emulating Basic Auth from Mason

2000-02-14 Thread Louis-David Mitterrand
On Sun, Feb 13, 2000 at 10:58:40AM -0800, Sean Chittenden wrote: I'm assuming that you're doing this in an access handler. If that's the case, set up some condition in your module where it figures out whether or not the user is authenticated. If the user isn't authenticated:

Re: Cookies

2000-02-14 Thread Axel Wagner
Hi, I had the same problem the server not sending any cookies. I don't think it has got to do with the 403 STATUS code: My Code contains: # add cookie file to HTTP header $r-err_headers_out-add('Set-Cookie' = $cookie); $r-no_cache(1); # trigger 403

Re: Embperl vs. Mason

2000-02-14 Thread dreamwvr
hi, my ignorance on Embperl is about to show;-)) tell me what would one be looking at to write apps for say the casios and Pilot 5s in linux? will embedded perl work? is it the right choice? this to map to web technologies of course:-)) Regards,

Re: Embperl vs. Mason

2000-02-14 Thread Jason Bodnar
One big difference that I would point out is that despite its name HTML::Mason, is _much_ less HTML centric than Embperl. It is a bit mod_perl centric but there is literally nothing HTML specific about it at all. We've been talking recently about how to expand mason so that it can be used

Re: PerlChildInitHandler

2000-02-14 Thread Sean Chittenden
Check to make sure that you compiled in the Init and Exit handlers into mod_perl. If you include the following code in a script, you should be able to figure this out really quick: require mod_perl; require mod_perl_hooks; my @retval = qw(table); my @list =

Re: PerlChildInitHandler

2000-02-14 Thread Brendan W. McAdams
Yup. (I knew i did since i compiled with EVERYTHING=1). All handlers lists as Enabled when this script is run. So ... whats the next step in debugging here? -brendan - Brendan W. McAdams| email: [EMAIL PROTECTED] Programmer/Systems Administrator | office:

Re: PerlChildInitHandler

2000-02-14 Thread Sean Chittenden
It's a bit harsh, but I'd try something like this just for kicks to make sure I can get access to the requested Handler. # In httpd.conf PerlModule DieOnInit # In DieOnInit package package DieOnInit; sub handler { warn "Child $$ is going to die in 20 seconds"; sleep(20); #

Re: PerlChildInitHandler

2000-02-14 Thread Randal L. Schwartz
"Sean" == Sean Chittenden [EMAIL PROTECTED] writes: Sean Check to make sure that you compiled in the Init and Exit handlers Sean into mod_perl. Sean If you include the following code in a script, you should be able Sean to figure this out really quick: Sean require mod_perl; Sean

Re: PerlChildInitHandler

2000-02-14 Thread Sean Chittenden
Lol! I ripped that right out of Apache::Status. Any ideas as to whether or not its faster with map or push? I may, desire dependent, benchmark the two formats and report the results. It looks to me like the reason Doug did the code the way he did was because he returns an array

Re: PerlChildInitHandler

2000-02-14 Thread Brendan W. McAdams
Nope. I'm not seeing it initialised. nothing in my logs... I _COULD_ do it in startup but it would defeat purpose. I'm building persistant database connections with mySQL and Apache::DBI from everything I've read and deduced, optimally EACH CHILD should be opening a localised persistant

Re: PerlChildInitHandler

2000-02-14 Thread Randal L. Schwartz
"Sean" == Sean Chittenden [EMAIL PROTECTED] writes: Sean Lol! I ripped that right out of Apache::Status. Any ideas as to Sean whether or not its faster with map or push? I may, desire dependent, Sean benchmark the two formats and report the results. Sean It looks to me like the reason

Re: Apache::ASP HTTP's validation model

2000-02-14 Thread Dmitry Beransky
The immediate problem I see with this approach, is that $Response-LastModified() can only be called once per request. Consider a situation when a single asp file has multiple includes and each include is generated from a separate datasource. In this case, each include has to report back

Re: Apache::ASP HTTP's validation model

2000-02-14 Thread Dmitry Beransky
But meets_condition is a file specific API and will not work for data coming from a database or a subrequest, etc. Dmitry At 01:08 AM 2/14/00, Matt Sergeant wrote: Isn't this handled by meets_condition? On Mon, 14 Feb 2000, Joshua Chamas wrote: What if it were just an Apache routine, like

Re: Apache::ASP HTTP's validation model

2000-02-14 Thread Joshua Chamas
Dmitry Beransky wrote: The immediate problem I see with this approach, is that $Response-LastModified() can only be called once per request. Consider a situation when a single asp file has multiple includes and each include is generated from a separate datasource. In this case, each

Re: Apache::ASP HTTP's validation model

2000-02-14 Thread Matt Sergeant
On Mon, 14 Feb 2000, Dmitry Beransky wrote: But meets_condition is a file specific API and will not work for data coming from a database or a subrequest, etc. I don't think there's anything file specific about meets_condition. Simply call $r-update_mtime() with the time given in your data or

Dynamic pages and ASP solutions - Apache::ASP vs. ChiliSoft ASP

2000-02-14 Thread Tim Lu
Hello, I am try to get a website up running on debian linux, apache web server, and postgresql database. however, to create dynamic pages, i have been exploring embperl, mason, Apache::ASP, and chilisoft ASP but have been unable to determine which one solution would probably be most

Re: Dynamic pages and ASP solutions - Apache::ASP vs. ChiliSoft ASP

2000-02-14 Thread Joshua Chamas
Tim Lu wrote: Hello, I am try to get a website up running on debian linux, apache web server, and postgresql database. however, to create dynamic pages, i have been exploring embperl, mason, Apache::ASP, and chilisoft ASP but have been unable to determine which one solution would

Re: Embedded Perl XML Extensions ...

2000-02-14 Thread Leslie Mikesell
According to Joshua Chamas: Will you be able to emulate the IIS/ASP 'transformNode' method that renders html from xml and xsl components? http://www.sci.kun.nl/sigma/Persoonlijk/egonw/xslt/ transformNode XSLT are not on my short list of TODOs for Apache::ASP, though certainly one

Re: Embedded Perl XML Extensions ...

2000-02-14 Thread Clay
i dont know if this is totally relevant but i have a small sample of a linux box w modperl apache setup and the modules for XML::Parser XML::DOMXML::XSL to parse the dtd xml and xsl file into a readable html doc and it works! embedperl could be used but thats just another layer right now

RE: Embperl vs. Mason

2000-02-14 Thread Autarch
On Mon, 14 Feb 2000, Gerald Richter wrote: all. We've been talking recently about how to expand mason so that it can be used in any sort of context where you have a request (from STDIN, email, whatever) for content that you want filled by components. While you are talking, Embperl can

re-tieing stdout to caputure subrequest output

2000-02-14 Thread Jason Bodnar
Last November somebody sent me some code that demonstrated how to re-tie stdout in order to capture the output from subrequests. I misplaced that email so if the person who sent it to me could resend it I'd be forever greatful. Of course, if somebody who didn't send it to me knows how to do it

RE: Embperl vs. Mason

2000-02-14 Thread Pascal Eeftinck
At 15:17 14-2-2000 -0600, Autarch wrote: On Mon, 14 Feb 2000, Gerald Richter wrote: all. We've been talking recently about how to expand mason so that it can be used in any sort of context where you have a request (from STDIN, email, whatever) for content that you want filled by

re-tieing stdout to caputure subrequest output

2000-02-14 Thread Ken Williams
From _subrequests_? I'm under the impression that this isn't possible, but if it is I definitely want to know about it. I'd use it for Apache::SSI and Apache::Filter. My understanding is that since subrequests don't necessarily use Perl's STDOUT layer, you can't capture the output with tie().

UN-Authenticating users?

2000-02-14 Thread John Walker
I'm writing some stuff with CGI under mod perl. The users have to authenticate prior to even getting to the script... However, some of my users have more than one login with separate privlidges... (provided by the script). I want them to be able to log out and then log back in as someone else,

RE: Embperl vs. Mason

2000-02-14 Thread Gerald Richter
Well, I haven't used Embperl but I've read the docs a bit and I have some idea of how it works. One big difference that I would point out is that despite its name HTML::Mason, is _much_ less HTML centric than Embperl. It is a bit mod_perl centric but there is literally nothing HTML

Embperl configuration problem

2000-02-14 Thread Jasper Wong
Hi guys, I'm new to using Embperl and ran into a configuration problem which I don't know how to fix. I really appreciate it if you could point me to the right direction :) Here's the setup: I've Apache 1.39 statically compiled with modperl 1.21 and Embperl 1.2.1. I have some pure perl

Apache, mod_perl and DBI

2000-02-14 Thread Adam Cassar
hello people me again with the Apache::DBI and apache problems the scenario - a very basic install of redhat 6.1 downloaded mod_perl 1.21 apache-1.3.11 from cpan Apache::DBI v0.87 DBI v1.13 DBD::mysql v2.0218

Re: Embperl configuration problem

2000-02-14 Thread Cliff Rayman
Your root Location directives are overriding your cgi-bin Location. You set your embperl to skip all files but the ehtml, but that means it does nothing with the .pl files. Try this instead for the root Location. Location / FilesMatch "\.ehtml$" SetHandler perl-script

Access modPerl Api from CGI??

2000-02-14 Thread Serge Serge Barbosa Da Torre
Hi guys, I find it easier to do quick dirty things with CGI without having to restart the server. So I am wondering if it is possible to create/simulate an Apache request object so that I can go on developping my application with pure CGI, and still call the various Apache modules which

RE: Embperl configuration problem

2000-02-14 Thread Gerald Richter
... Alias /cgi-bin/ "/abc/cgi-bin/" Location /cgi-bin SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On /Location Location / SetHandler perl-script PerlHandler HTML::Embperl PerlSetEnv EMBPERL_FILESMATCH

Re: Access modPerl Api from CGI??

2000-02-14 Thread Stas Bekman
I find it easier to do quick dirty things with CGI without having to restart the server. So I am wondering if it is possible to create/simulate an Apache request object so that I can go on developping my application with pure CGI, and still call the various Apache modules which requires

Re: Embperl vs. Mason

2000-02-14 Thread Jonathan Swartz
Nothing really to add here, except that since this seems to be a FAQ, perhaps Stas would be willing to add a section about it that we could just point to whenever this question comes up? A non-partisan page with a focus on similarities and links to each site would be ideal. At 12:39 AM 2/14/00

Re: Embperl vs. Mason

2000-02-14 Thread Stas Bekman
Nothing really to add here, except that since this seems to be a FAQ, perhaps Stas would be willing to add a section about it that we could just point to whenever this question comes up? A non-partisan page with a focus on similarities and links to each site would be ideal. Hmm, I hardly