PHP::Functions::File - Transplant of file_get_contents/file_put_contentsl function of PHP
#file_get_contents use PHP::Functions::File qw(file_get_contents); string file_get_contents ( string $filename [, bool $use_include_path = 0 [, hash $context [, int $offset = -1 [, int $maxlen ]]]] ) filename : Name of the file to read. use_include_path : If ture, search for filename in the include directory. context : Not supported now. offset : Not supported now. maxlen : Not supported now. #file_put_contents use PHP::Functions::File qw(file_put_contents); int file_put_contents ( string $filename , string $data [, int $flags = 0 [, hash $context ]] ) filename: Path to the file where to write the data. data : The data to write. flags : Not supported now. context : Not supported now.
This module offers perl function resemble file_get_contents/file_put_contents on PHP. Perl 5.8 or higher is required.
http://www.php.net/manual/en/function.file-get-contents.php http://www.php.net/manual/en/function.file-put-contents.php
- multiprotocol support. (Currently only http/file protocols are supported.) - context support.
Tomohide Nagashima <tnaga@cpan.org>
2 POD Errors
The following errors were encountered while parsing the POD:
=cut found outside a pod block. Skipping to next block.
To install PHP::Functions::File, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PHP::Functions::File
CPAN shell
perl -MCPAN -e shell install PHP::Functions::File
For more information on module installation, please visit the detailed CPAN module installation guide.