[mp2] slurping files
[prev]
[thread]
[next]
[Date index for 2005/02/12]
What's the best way to slurp a file in mod_perl 2? I'm trying to use:
$r->filename('somefile.txt');
$text = ${ $r->slurp_filename() };
But it returns:
Error: read 23 bytes, expected 512 ('(null)')
The file is 23 bytes -- is mod_perl expecting files to end in a null
char?
- ben
 |
[mp2] slurping files
ben syverson 08:37 on 12 Feb 2005
|