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
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
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
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
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
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
>
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.
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');
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
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
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
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
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
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
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
15 matches
Mail list logo