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
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
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
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
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
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
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
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:
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
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,
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
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 =
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:
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); #
"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
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
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
"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
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
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
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
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
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
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
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
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
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
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
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
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().
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,
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
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
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
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
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
...
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
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
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
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
40 matches
Mail list logo