NAME
Plack::App::PHPCGIFile - serve PHP and static files from a directory
SYNOPSIS
use Plack::App::PHPCGIFile;
my $app = Plack::App::PHPCGIFile->new(
root => '/path/to/htdocs'
)->to_psgi;
DESCRIPTION
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.
METHODS
- new
-
my $app = Plack::App::PHPCGIFile->new(%args);
Creates a new PSGI application using the given script. %args has two parameters:
- root
-
Document root directory. Defaults to
.
(current directory) - php_cgi
-
An optional parameter. path for php-cgi command
AUTHOR
Masahiro Nagano <kazeburo {at} gmail.com>
SEE ALSO
Plack::App::PHPCGI, Plack::App::File
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.