Plack::App::PHPCGI - execute PHP script as CGI
use Plack::App::PHPCGI; my $app = Plack::App::PHPCGI->new( script => '/path/to/test.php' );
Plack::App::WrapCGI supports CGI scripts written in other languages. but WrapCGI cannot execute PHP script that does not have shebang line and exec bits. Plack::App::PHPCGI execute any PHP scripts as CGI with php-cgi command.
my $app = Plack::App::PHPCGI->new(%args);
Creates a new PSGI application using the given script. %args has two parameters:
The path to a PHP program. This is a required parameter.
An optional parameter. path for php-cgi command
Masahiro Nagano <kazeburo {at} gmail.com>
Plack::App::WrapCGI
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.