Plack::App::PHPCGIFile - serve PHP and static files from a directory
use Plack::App::PHPCGIFile; my $app = Plack::App::PHPCGIFile->new( script => '/path/to/htdocs' );
Plack::App::PHPCGIFile is subclass of Plack::App::File. This module serves static file and PHP script from a directory. PHP script executed as CGI by Plack::App::PHPCGI.
my $app = Plack::App::PHPCGIFile->new(%args);
Creates a new PSGI application using the given script. %args has two parameters:
Document root directory. Defaults to . (current directory)
.
An optional parameter. path for php-cgi command
Masahiro Nagano <kazeburo {at} gmail.com>
Plack::App::PHPCGI, Plack::App::File
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::App::PHPCGI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::PHPCGI
CPAN shell
perl -MCPAN -e shell install Plack::App::PHPCGI
For more information on module installation, please visit the detailed CPAN module installation guide.