Re: How to port Apache::File from mp1 to mp2

2011-03-16 Thread Clinton Gormley
On Wed, 2011-03-16 at 10:14 -0400, shant. wrote: > i dont want to use Apache2::Compat > > mp 1 code > > my $fh = Apache::File->new($self->{TicketSecret}) || return; > $self->{SECRET_KEY} = <$fh>; > > i need to convert it into

How to port Apache::File from mp1 to mp2

2011-03-16 Thread shant.....
i dont want to use Apache2::Compat mp 1 code my $fh = Apache::File->new($self->{TicketSecret}) || return; $self->{SECRET_KEY} = <$fh>; i need to convert it into mp2 -- Life is Just a dream on the way to death... Regards Shantlingayya

Re: Apache::File

2006-08-22 Thread Perrin Harkins
On Tue, 2006-08-22 at 11:30 -0400, Jonathan Vanasco wrote: > Maybe i can wrap / subclass APR::File and then just add the tmpfile > functionality If you use File::Temp, they will disappear when you close the file on most OSes. Or you can do this: $r->push_handlers(PerlCleanupHandler => sub { Fi

Re: Apache::File

2006-08-22 Thread Jonathan Vanasco
On Aug 22, 2006, at 9:52 AM, Geoffrey Young wrote: Tom Schindl wrote: What does Apache::File provide other classes in mp2/standard perl don't? - $fh->tmpfile() => File::Temp this is the only one that comes to mind - Apache::File::tmpfile() creates a temporary file t

Re: Apache::File

2006-08-22 Thread Geoffrey Young
Tom Schindl wrote: > Jonathan Vanasco schrieb: > >>Does anyone plan on porting Apache::File to Apache2 ? >> >>I'm using it in the Apache2::compat mode right now, but I feel uneasy >>using compat outside of my dev box >> >>I took a stab at porting

Re: Apache::File

2006-08-22 Thread Tom Schindl
Jonathan Vanasco schrieb: > Does anyone plan on porting Apache::File to Apache2 ? > > I'm using it in the Apache2::compat mode right now, but I feel uneasy > using compat outside of my dev box > > I took a stab at porting the perl part of File and Symdump, but File has >

Apache::File

2006-08-21 Thread Jonathan Vanasco
Does anyone plan on porting Apache::File to Apache2 ? I'm using it in the Apache2::compat mode right now, but I feel uneasy using compat outside of my dev box I took a stab at porting the perl part of File and Symdump, but File has an xs component I know i can't handle myself.

Re: Apache::File and setting filename

2005-05-17 Thread Scott Alexander
Scott Alexander wrote: Hi, Is it possible with Apache::File to set the name of the filename? (Apache/1.3.31 (Unix) mod_perl/1.29 configured) For the record: $fh = Apache::File->new($file) or warn "Can't open $file $!"; $r->content_type('application/octet-stream');

Apache::File and setting filename

2005-05-17 Thread Scott Alexander
Hi, Is it possible with Apache::File to set the name of the filename? (Apache/1.3.31 (Unix) mod_perl/1.29 configured) I have print "Content-type: application/octet-stream\n\n" ; $file = "myfile_to_send.doc" ; $fh = Apache::File->new($file) or warn "Can't ope

Re: Apache::File again

2004-07-03 Thread Stas Bekman
David Arnold wrote: All, I tried to follow an earlier suggestion (http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__File_), but failed to figure out what to do. I have this: use Apache::File; And later this: my $fh=Apache::File->new($r->filename); unle

Apache::File again

2004-07-03 Thread David Arnold
All, I tried to follow an earlier suggestion (http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__File_), but failed to figure out what to do. I have this: use Apache::File; And later this: my $fh=Apache::File->new($r->filename); unless($fh) { $log

Re: Apache::File

2004-07-03 Thread Stas Bekman
David Arnold wrote: All, In modperl 2.0, what should I use in place of Apache::File? Find the method that you want here: http://perl.apache.org/docs/2.0/user/porting/compat.html -- __ Stas BekmanJAm_pH --> Just Anot

Apache::File

2004-07-03 Thread David Arnold
All, In modperl 2.0, what should I use in place of Apache::File? -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: Porting Apache::File to modperl2

2003-12-05 Thread Geoffrey Young
Markus Reinhardt wrote: > > Hi there, > > I try to change the following line to modperl2: > > my $fh = Apache::File->new($r->filename) || return DECLINED; > But unfortunately I don't know in what manner I have to change > the above line for Apache::Fi

Porting Apache::File to modperl2

2003-12-05 Thread Markus Reinhardt
Hi there, I try to change the following line to modperl2: my $fh = Apache::File->new($r->filename) || return DECLINED; The documentation tells me that Apache::File has been removed for modperl2. Implementing Apache::Porting module says to replace Apache::File: mod_perl 2.0 API doesn