Re: Done before?

2002-08-28 Thread jhiver
I like XML, but not XSLT. Same here. I like XHTML. It's only slightly less horrible than HTML but yeah... shame that XHTML 1.1 has to be served as application/xml, which no version of IE supports :-( The only XHTML compliant templating/content management system I have seen is in Java, it's

[Q] Exception Handling

2002-08-28 Thread THC Soft
Hi all, I usually receive just the digest mails and don't take part in the discussions, so I'm maybe new to the list. I studied mod_perl guide, grepped through my archives, visited search.cpan and even asked some perlmonks, but couldn't find an answer to my problem. Here it is: I have a content

Authentication Question

2002-08-28 Thread Brett Hales
I have a mod_perl cgi script that I would like to get the username from the Apache server. The apache server successfully authenticates the client using Apache::AuthenSmb. How do I get this environment variable (the username) from apache into a variable in the perl script. Thanks, Brett

Re: Authentication Question

2002-08-28 Thread Per Einar Ellefsen
At 09:55 28.08.2002, Brett Hales wrote: I have a mod_perl cgi script that I would like to get the username from the Apache server. The apache server successfully authenticates the client using Apache::AuthenSmb. How do I get this environment variable (the username) from apache into a variable in

Re: [OT] HTML to XHTML conversion

2002-08-28 Thread Jean-Michel Hiver
On Fri 23-Aug-2002 at 11:07:35AM -0500, D. Hageman wrote: My suggestion would to just use a XML parser module like XML::LibXML. Load the file up using the HTML loading functions and print it using the XML printing functions ... since the only difference I can see between HTML and XHMTL

$r-print() with slow clients and stop button

2002-08-28 Thread mmaunder
Hi, I've created a meta-search that prints out status messages to the browser as it receives responses from the servers it is searching by setting $|=1 and using $r-print. It runs as a mod_perl handler. I'm running apache 1.3.24 and mod_perl 1.26 on Linux. I'm finding that my web app has

Re: $r-print() with slow clients and stop button

2002-08-28 Thread Stas Bekman
[...] I'd like to somehow send data to the client and have execution continue until the end of a time critical section, after which it will wait for acknowledgement of all data that was sent and if that is not received within X seconds, kill the connection and return OK.

Re: [OT] HTML to XHTML conversion

2002-08-28 Thread Ilya Martynov
On Wed, 28 Aug 2002 10:07:07 +0100, Jean-Michel Hiver [EMAIL PROTECTED] said: JM bodybody/body/body is not valid XHTML for example. JM input type=text name=foo/input is not valid XHTML either. JM You have to be careful about block-level and inline elements. Actually input type=text

RE: Done before?

2002-08-28 Thread Narins, Josh
Thanks Perrin. I probably skipped your Templating guide because I'd already used more than half of them myself :) I'm probably going to skip HTML_Tree because it's tree-ish and not events-ish. I'm currently an events-ish type person. Probably because I imagine it's faster. I'm also going to

RE: large projects in mod_perl

2002-08-28 Thread Calbazana, Al
The resources that were pointed out were great! For large web apps MVC is great, especially when combined with XML and XSLT. It is certainly not a panacea as someone stated in an earlier post. Mod_perl can function as an application server. I don't know a whole lot about this, but I know it can

RE: Done before?

2002-08-28 Thread Calbazana, Al
What about using sax filtering and custom tag libs to accomplish your transformations? If you don't like XSLT (I can see how that is possible :) ) and you are comfortable with events, you can put together a really good transformation layer. Not sure if this is overkill, especially when you

RE: Done before?

2002-08-28 Thread Narins, Josh
Re: Petal xmlns also? very sharp. I really like it, but I have to check out how the WYSIWIGS handle processsing instructions like these... ?petal:if name=user.is_birthay? Happy Birthday, $xml:user.real_name! ?else? What?! It's not your birthday? Maybe tomorrow... ?end? If this is

Re: large projects in mod_perl

2002-08-28 Thread Chris Winters
* Calbazana, Al ([EMAIL PROTECTED]) [020828 09:04]: I am not sure of what app server products/projects are out there now for Perl (maybe some were mentioned earlier). The building blocks are definitely there. I am sure someone has assembled, or is assembling, them to serve as a turn key app

Re: Authentication Question

2002-08-28 Thread Per Einar Ellefsen
Please do not send replies directly to me, Cc the list. At 13:40 28.08.2002, Brett Hales wrote: On Wed, 2002-08-28 at 17:47, Per Einar Ellefsen wrote: At 09:55 28.08.2002, Brett Hales wrote: I have a mod_perl cgi script that I would like to get the username from the Apache server. The

Re: [Q] Exception Handling

2002-08-28 Thread wsheldah
Take a look at Exception::Class, which I believe uses Devel::StackTrace. Both are available on CPAN. I personally derived a lot of benefit from seeing how exceptions were done in Alzabo (http://www.alzabo.org), even though I'm not using Alzabo itself in my applications. All three modules are

RE: SSI and mod_perl

2002-08-28 Thread Narins, Josh
Wouldn't $r-push_handlers($hook,\handler) do the trick, also? $r-push_handlers(PerlCleanupHandler,\oh_you_wanted_a_C_module); -Original Message- From: Per Einar Ellefsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 5:16 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]

odd authetication situation

2002-08-28 Thread Michael Robinton
I have a modperl handler that sets a cookie and does a redirect if the cookie was not present. The redirected page eventually loads the same page again. In addition, this page is called from a protected portion of the site that requires Basic Auth. When the redirect calls the mod_perl routine

Re: odd authetication situation

2002-08-28 Thread Peter Bi
Maybe you can try to add specifically: $r-connection-user('who_the_user_is') before the cookie access control returns OK in the module. Note that some of the cookie authentication modules are based on access-only control so $r-connection-user() can return a value in late phases only if one

Re: odd authetication situation

2002-08-28 Thread Michael Robinton
Maybe you can try to add specifically: $r-connection-user('who_the_user_is') before the cookie access control returns OK in the module. Note that some of the cookie authentication modules are based on access-only control so $r-connection-user() can return a value in late phases only if one

Re: odd authetication situation

2002-08-28 Thread Michael Robinton
Peter wrote: Maybe you can try to add specifically: $r-connection-user('who_the_user_is') before the cookie access control returns OK in the module. Note that some of the cookie authentication modules are based on access-only control so $r-connection-user() can return a value in late phases

Re: Segmentation Fault with mod_php and mod_perl

2002-08-28 Thread Alex Lee
Stas, I am sorry, I got too excited when I saw the segmentation fault. Here is the output of 'bt': Program received signal SIGSEGV, Segmentation fault. 0x75a10 in php_xbithack_handler (r=0x927840) at mod_php4.c:778 778 if (!(r-finfo.st_mode S_IXUSR)) { (gdb) bt #0 0x75a10 in

Re: odd authetication situation

2002-08-28 Thread Tim Tompkins
The client only sends basic auth credentials when requested. So if you have an authorization handler that might validate a cookie and return OK before basic auth credentials are requested of the client, then you will need to set $r-user from that handler for it to be accessible later on down the

Re: [mp-1.99_05] HPUX 11 w/gcc 3.2(b) -Ae missing ... predicateerror

2002-08-28 Thread Doug MacEachern
On Tue, 27 Aug 2002, Phil Lobbes wrote: Hi, I noticed in 'lib/Apache/Build.pm' that the -Ae option was being added even if the compiler was gcc. This options causes an error something like the following: ... missing '(' after predicate ... error In the code below

Re: [modperl-2.0] unresolved external on win32 when compiling

2002-08-28 Thread Doug MacEachern
On Sat, 17 Aug 2002, pascal barbedor wrote: Hi when compiling modperl 1.99_05 (from today cvs) with MP_DEBUG=1 there is un unresolved external RequestIO.obj : unresolved external symbol _times RequestIO.dll fatal LNK error this has been fixed in cvs. just s/times/PerlProc_times/g in

Re: [mp-1.99_05] segfault modperl_pcw.c:52 ap_pcw_walk_files_configdconf-sec_file is NULL

2002-08-28 Thread Doug MacEachern
On Tue, 27 Aug 2002, Phil Lobbes wrote: Hi, I just recently joined the mail list and did a quick check but didn't seen any report of this problem: Versions: perl-5.6.1 (non-threaded) apache-2.0.40(mpm-prefork) mod_perl-1.99_05 OS: HPUX 11 Compiler: gcc

Re: Weird: Perl/Perl [mp2]

2002-08-28 Thread Doug MacEachern
On Mon, 19 Aug 2002, Alessandro Forghieri wrote: Greetings. This happens on win32. If the following is inserted in httpd.conf: Perl /Perl I get, reasonbly enough: Syntax error on line 961 of D:/Apache2/conf/httpd.conf: Perl sections not yet implemented in modperl-2.0 Tough,

Re: Performance issue

2002-08-28 Thread Doug MacEachern
On Tue, 20 Aug 2002, Pierre Laplante wrote: Does any body has performance data regarding mod_perl 2.0 vs mod_perl 1.0? i have not done any benchmarking, nor have i seen number from anybody else. maybe josh chamas will add 2.0 to his benchmark matrix soon? What is the stability of

Re: Segmentation Fault with mod_php and mod_perl

2002-08-28 Thread Doug MacEachern
On Wed, 28 Aug 2002, Alex Lee wrote: Stas, I am sorry, I got too excited when I saw the segmentation fault. Here is the output of 'bt': Program received signal SIGSEGV, Segmentation fault. 0x75a10 in php_xbithack_handler (r=0x927840) at mod_php4.c:778 778 if