Skip to content

kazeburo/Plack-App-PHPCGI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <kazeburo {at} gmail.com>

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.

About

execute PHP script as CGI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages