compiled mp2 handler?

2007-08-21 Thread Jen mlists
I saw this document on perl.apache.com site, When a mod_perl hook is called for a given phase, the glue code has an index into the array of handlers, so it knows to return DECLINED right away if no handlers are configured, without entering the Perl runtime as 1.0 did. The handlers are also now

recording perl module

2007-08-21 Thread usha rani
hi , i am doing mod_perl but i am not able to run in apache, httpd.configfile we has added * LoadModule perl_module /usr/lib/httpd/modules/mod_perl.so * then also we not able to run so any one can give suggestion what are the changes we has to make in httpd.conf file. thankig

Re: recording perl module

2007-08-21 Thread Clinton Gormley
You haven't given us any information about your setup, or the error that you see, so it is very difficult to help you. You will find an installation guide here: http://perl.apache.org/docs/2.0/user/install/install.html Clint On Tue, 2007-08-21 at 16:59 +0530, usha rani wrote: hi , i

Re: Configuring Mod_perl and Apache web Server

2007-08-21 Thread usha rani
hi, We would like to have information regarding configuration of MOD_PERL 2.0.3 with Apache Server -2.2.4 [EMAIL PROTECTED] version in cygwin. I need some information regarding configuration of httpd.conf file, what are the changes we have to make in httpd.conf file for

mod_perl2 compiling error

2007-08-21 Thread jónJósef Bjarnason
When running make for mod_perl 2.0.3 I get an error telling me to use -fPIC option. Does anyone know where to put that compiling option ? Regards Jon Apache 2.2.4 Perl 5.8.8 mod_perl 2.0.3 Ubuntu 6.06 LTS 64bit AMD when compiling -o mod_perl.so: `a local symbol' can not be used when making a

How to display images ?

2007-08-21 Thread RGKärcher
Hi guys , I a new to perl and mod_perl and Apache::Asp , And I wold like to ask you How to display an image ? I tried the example that display a binary file included in /eg , but Is there a simple way to show a an image ? and I want to show a flash animation also in my scripts . I use a

Re: How to display images ?

2007-08-21 Thread Georg Grabler
On Tuesday 21 August 2007 15:48:23 RGKärcher wrote: print  pa href=\http://www.mysite.net/\;  img src=\site_images/$image \  width=\160\ height=\180\ alt=\image \ class=\float-left\ //a\n; Perl is just a bit differnt. Either, use ${image} instead of $image or use sprintf. -- Yours, Georg

Re: How to display images ?

2007-08-21 Thread Michael Peters
Georg Grabler wrote: On Tuesday 21 August 2007 15:48:23 RGKärcher wrote: print pa href=\http://www.mysite.net/\; img src=\site_images/$image \ width=\160\ height=\180\ alt=\image \ class=\float-left\ //a\n; Perl is just a bit differnt. Either, use ${image} instead of $image or use

Re: Configuring Mod_perl and Apache web Server

2007-08-21 Thread Perrin Harkins
On 8/21/07, usha rani [EMAIL PROTECTED] wrote: We would like to have information regarding configuration of MOD_PERL 2.0.3 with Apache Server -2.2.4 version in cygwin. I need some information regarding configuration of httpd.conf file, what are the changes we have to make

Re: compiled mp2 handler?

2007-08-21 Thread Perrin Harkins
On 8/21/07, Jen mlists [EMAIL PROTECTED] wrote: does this mean mp1 handler need to be parsed and compiled each time when requests came and called that handler? No, it means that the dispatch code like MyModule-handler is parsed and compiled each time. - Perrin

Re: How to display images ?-Not Working

2007-08-21 Thread RGKärcher
Hi guys , Thanks Michael and Georg but none of the examples works for me ... I'm using Apache::Asp . What could be the problem ? Thanks in Advance Rick --- Michael Peters [EMAIL PROTECTED] escribió: Georg Grabler wrote: On Tuesday 21 August 2007 15:48:23 RGKärcher wrote: print

Re: How to display images ?-Not Working

2007-08-21 Thread Clinton Gormley
On Tue, 2007-08-21 at 14:40 -0300, RGKärcher wrote: Hi guys , Thanks Michael and Georg but none of the examples works for me ... I'm using Apache::Asp . What could be the problem ? Thanks in Advance What error are you seeing? What does the HTML being sent to your browser look

Re: How to display images ?-Not Working

2007-08-21 Thread Manoj Bist
Hi Rick, Please use Text::Template for generating the html you send to the client. As long as you keep appending the html string to $OUT, it should work under mod_perl2.0. http://search.cpan.org/~mjd/Text-Template-1.44/lib/Text/Template.pm Thanks, Manoj. On 8/21/07, RGKärcher [EMAIL

Special characters

2007-08-21 Thread Dan King
I am having issues running a web application, called OTRS, that uses DBI and DBD::Oracle. When I insert special characters, such as é or â they show up as question marks in the database when looking at them from sqlplus or through the web application. I am running the web app on Apache v1 with

Re: How to display images ?-Logs

2007-08-21 Thread RGKärcher
Hi guys , The apache log show me this : [Tue Aug 21 13:57:21 2007] [error] Unrecognized character \\xFF at /var/www/html/mgnosis/gnosisweb/site_images/buda.jpg line 1.\n When I do this : http://www.moderngnosis.com.ar/gnosisweb/site_images/buda.jpg And with others .jpgs .gifs etc . What

Re: Special characters

2007-08-21 Thread Clinton Gormley
On Tue, 2007-08-21 at 14:21 -0400, Dan King wrote: I am having issues running a web application, called OTRS, that uses DBI and DBD::Oracle. When I insert special characters, such as é or â they show up as question marks in the database when looking at them from sqlplus or through the web

Re: How to display images ?-Logs

2007-08-21 Thread Clinton Gormley
I wonder if for some reason apache is trying to execute your images like a CGI script. (First time I've heard of this, so may be wrong) Searching on that error message, I found a thread with the same problem. Have you added the PerlRequestHandler outside a File or Location directive?

RE: Special characters

2007-08-21 Thread Adam Prime x443
You've said that you've verified that the data is in the DB correctly from the shell, but it's possible that it's trying to convert to another charset it when you pull it out for some reason. There seems to be some stuff in the DBD::Oracle documentation talking about charsets and unicode, i'd

RE: Special characters

2007-08-21 Thread Dan King
I am using ISO-8859-1 in the database and the correct encoding is being used on the clients web browser. That is why I thought that it may be an apache or mod_perl issue. Thank you for the recommendations though and I will look into and experiment with all of them. Dan King Software Developer

Re: Special characters

2007-08-21 Thread Manoj Bist
You need to know the encoding of the characters you are using in perl and handle them accordingly. The following link should have sufficient information to help you trouble shoot this. http://search.cpan.org/~jhi/perl-5.8.0/pod/perluniintro.pod On 8/21/07, Dan King [EMAIL PROTECTED] wrote:

Internal Server Error

2007-08-21 Thread Jordan McLain
Hello, I have a module that will fail every once in a while with the error_log message: Can't call method send_http_header on an undefined value at /path/to/module/Name.pm The handler method starts out with: sub handler ($$) { my ($class, $r) = @_; For some reason $r is not defined.

Re: Internal Server Error

2007-08-21 Thread Jeff Pang
Try change the codes to:sub handler { my $r = shift; ...-Original Message- From: Jordan McLain <[EMAIL PROTECTED]> Sent: Aug 22, 2007 9:26 AM To: mod_perl Subject: Internal Server Error Hello,I have a module that will fail every once in a while with the error_log

Re: Internal Server Error

2007-08-21 Thread Perrin Harkins
On 8/21/07, Jordan McLain [EMAIL PROTECTED] wrote: sub handler ($$) { my ($class, $r) = @_; For some reason $r is not defined. This only happens intermittently... Does anyone have any ideas? Sounds like sometimes it doesn't get properly called as a method, so $r ends up as the first

Re: Internal Server Error

2007-08-21 Thread Colin Wetherbee
Jeff Pang wrote: Try change the codes to: sub handler { my $r = shift; ... If his handler is called as a method, $class is an appropriate first variable to shift out of @_. Using ($class, $r) = @_ is a perfectly legitimate way of taking care of that. Colin

Re: 答复: Internal Server Error

2007-08-21 Thread Jordan McLain
Yes. The Apache server is normally running. It is serving requests perfectly fine before this starts a few hours later, intermittently. Jordan On 8/21/07, Luke Lu [EMAIL PROTECTED] wrote: Are you sure the mod_perl already being running? -- *发件人:* Jordan

Re: Configuring Mod_perl and Apache web Server

2007-08-21 Thread Foo JH
Read up on this document and other related ones: http://perl.apache.org/docs/2.0/user/config/config.html Read this also: http://perl.apache.org/docs/2.0/os/win32/index.html usha rani wrote: hi, We would like to have information regarding configuration of MOD_PERL 2.0.3 with Apache

Re: Internal Server Error

2007-08-21 Thread Jordan McLain
I might have solved my own problem... I was calling: PerlHandler Package::Name instead of: PerlHandler Package::Name-handler although I am still confused as to why the first was working... Jordan On 8/21/07, Colin Wetherbee [EMAIL PROTECTED] wrote: Jeff Pang wrote: Try change the codes

Re: Internal Server Error

2007-08-21 Thread Jeff Pang
-Original Message- From: Jordan McLain [EMAIL PROTECTED] Sent: Aug 22, 2007 10:52 AM To: modperl@perl.apache.org Subject: Re: Internal Server Error I might have solved my own problem... I was calling: PerlHandler Package::Name instead of: PerlHandler Package::Name-handler So on the