Re: porting from mod_perl1 to mod_perl2

2003-09-09 Thread Stas Bekman
I think I got your problem solved, you need to: - print $q-header(); + print $q-header(text/html; charset=utf-8); __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---

Re: Help wanted with locations / configuration

2003-09-09 Thread Steve Hay
Marc Slagle wrote: On Mon, 2003-09-08 at 11:51, Steve Hay wrote: It also needs to have access to various static resources (images, stylesheets, JavaScript libraries etc.). Thus, I want to have something like this: /myproject [mp1] /myproject/component1 [mp1]

Re: Help wanted with locations / configuration

2003-09-09 Thread Steve Hay
Perrin Harkins wrote: On Mon, 2003-09-08 at 11:51, Steve Hay wrote: Thus, I want to have something like this: /myproject [mp1] /myproject/component1 [mp1] /myproject/component2 [mp1] ... /myproject/images [static] /myproject/javascript [static]

Re: Help wanted with locations / configuration

2003-09-09 Thread Steve Hay
petersm wrote: Steve Hay [EMAIL PROTECTED] wrote Location /myproject SetHandler perl-script PerlHandler MyProject-dispatcher /Location LocationMatch ^/myproject/(images|javascript|stylesheets) SetHandler default-handler /LocationMatch Correct me if I'm wrong, but can't you just

Re: Help wanted with locations / configuration

2003-09-09 Thread Xavier Noria
On Tuesday 09 September 2003 11:16, Steve Hay wrote: Those were actually my very frist ideas, but I decided that I prefer to have all the URL's to begin with /myproject. I don't necessarily require that URL to be related to the filesystem structure, but I just want all the URL's (dynamic and

Re: Help wanted with locations / configuration

2003-09-09 Thread Thomas Klausner
Hi! On Tue, Sep 09, 2003 at 10:05:43AM +0100, Steve Hay wrote: Location /myproject/css SetHandler default /Location Location /myproject/img SetHandler default /Location This is working as expected, i.e. request for /css/foo.css or /img/bar.png are not handled by Apache::Dispatch

Re: Portability Question

2003-09-09 Thread Perrin Harkins
On Mon, 2003-09-08 at 23:29, Philip M. Gollucci wrote: I haven't really had a hard time with this except: CGI.pm ($query = CGI-new()) What about it? Is it not working? Spreadsheet::WriteExcel (0.26 or less for Win2k/ISS5.0PerlEx current is .40 most likely not thread safe) GD.pm

Re: Help wanted with locations / configuration

2003-09-09 Thread petersm
Steve Hay [EMAIL PROTECTED] wrote Thanks for the idea, though. If I manage to overcome my inexplicable aversion to file extensions then it certainly looks like the simplest solution. I understand the argument that it's better for the user to not know the extension of the file they are

Re: Help wanted with locations / configuration

2003-09-09 Thread Marc Slagle
On Tue, 2003-09-09 at 05:00, Steve Hay wrote: As in a PerlTransHandler, yes? Yup. Is there a performance penalty with this? You're using Perl code to inspect the URI, and then handing control back to the Apache core if it is a static file. I wanted to avoid requests for static files

problem with RPM instalation of Apache and Mod_perl on RedHat and Mason

2003-09-09 Thread parvez mohamed
I have RedHat 9, I have installed Apache using rpmwich comes with RedHat9 (httpd-2.0.40-21) then ihaveinstalled mod_perl using rpm mod_perl-1.99_07-5then is have installed the latest Mason filesHTML-Mason-1.22) but when i try to start Apache it saysApache/Constants.pm not found. I serched CAPAN

Re: Portability Question

2003-09-09 Thread Randy Kobes
On Mon, 8 Sep 2003, Philip M. Gollucci wrote: Say I want the same code to work under: Win2k/ISS5.0CGI Win2k/IIS5.0PerlEX Win2k/Apache1mod_perl1 Win2k/Apache2mod_perl2 FreeBSD/Linux/Sun/Apache1mod_perl1 FreeBSD/Linux/Sun/Apache2mod_perl2 FreeBSD/Linux/Sun/Apache1,2CGI

Re: Help: Can't coerce GLOB to string...

2003-09-09 Thread Stas Bekman
[Forwarded from [EMAIL PROTECTED] [EMAIL PROTECTED]] Hello, In response to : Kurt George Gjerde wrote: BTW: I've fixed my can't coerce GLOB to string problem I had last week. Was unrelated to mod_perl (sorry). It seems XML::LibXSLT produced some errors which went straight to STDERR. Under

RE: porting from mod_perl1 to mod_perl2

2003-09-09 Thread Bart Terryn
Stas and all of the others, Stas said: I think I got your problem solved, you need to: - print $q-header(); + print $q-header(text/html; charset=utf-8); Well actually you did not. Probably you looked a bit too fast. (forgivable in view of the numbers of mails you reply to:-) The utf8-test.pl

Re: CPAN module Apache::Emulator

2003-09-09 Thread Stas Bekman
Adam Kennedy wrote: Interesting idea, and I'm fine with it, although I dislike ApacheEmu. Despite being longer, surely it would fit somewhere like Emulate::Apache::XX. That's fine too. I just thought of a namespace starting with ApacheXXX:: so it'll be placed next to Apache:: in the global

Re: porting from mod_perl1 to mod_perl2

2003-09-09 Thread Stas Bekman
Bart Terryn wrote: Stas and all of the others, Stas said: I think I got your problem solved, you need to: - print $q-header(); + print $q-header(text/html; charset=utf-8); Well actually you did not. Probably you looked a bit too fast. (forgivable in view of the numbers of mails you reply

Re: problem with RPM instalation of Apache and Mod_perl on RedHat and Mason

2003-09-09 Thread Stas Bekman
parvez mohamed wrote: I have RedHat 9, I have installed Apache using rpm wich comes with RedHat9 (httpd-2.0.40-21) then i haveinstalled mod_perl using rpm mod_perl-1.99_07-5 I don't know what version HTML::Mason is relying on (I'll let the mason developers to comment on it), but you probably want

RE: porting from mod_perl1 to mod_perl2

2003-09-09 Thread Bart Terryn
Stas, Sorry to insist. But here I am again... Stas wrote: Actually I haven't looked, I have tested with your code. Thanks a lot for going through the effort... Before setting the header I wasn't getting the unicode chars you put in the form back in the dump. After setting the header it did

Mod Perl 1 Install Apache 1

2003-09-09 Thread Paul Kraus
I am trying to make mod perl one and keep getting the following error. Paul perl Makefile.PL APACHE_SRC=../apache_1.3.28/src APACHE_PREFIX=/srv/www DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 Make r.o): In function `Perl_reentrant_retry': reentr.o(.text+0x67b): undefined reference to

Re: Sending a different protocol header

2003-09-09 Thread Chris Shiflett
--- Geoffrey Young [EMAIL PROTECTED] wrote: btw, can you please explain what ICY is for me? I believe ICY is a protocol used for streaming media, so these headers are probably an extension of HTTP that can be used instead of the pure ICY protocol. That's a guess, anyway. :-) Chris = Become

RE: porting from mod_perl1 to mod_perl2

2003-09-09 Thread Randy Kobes
On Tue, 9 Sep 2003, Bart Terryn wrote: Stas, Sorry to insist. But here I am again... Stas wrote: Actually I haven't looked, I have tested with your code. Thanks a lot for going through the effort... Before setting the header I wasn't getting the unicode chars you put in the form back