Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
execute PHP script as CGI
Perl Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Plack/App
t
.gitignore
Build.PL
Changes
LICENSE
META.json
README.md
cpanfile
minil.toml

README.md

Build Status

NAME

Plack::App::PHPCGI - execute PHP script as CGI

SYNOPSIS

use Plack::App::PHPCGI;

my $app = Plack::App::PHPCGI->new(
    script => '/path/to/test.php'
);

DESCRIPTION

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.

METHODS

  • new

    my $app = Plack::App::PHPCGI->new(%args);
    

    Creates a new PSGI application using the given script. %args has two parameters:

    • script

      The path to a PHP program. This is a required parameter.

    • php_cgi

      An optional parameter. path for php-cgi command

AUTHOR

Masahiro Nagano

SEE ALSO

Plack::App::WrapCGI

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Something went wrong with that request. Please try again.