11 _________________________
2-
2+
33 PHP FastCGI Client README
44 _________________________
5-
5+
66
77AUTHOR & CONTACT
88================
99
1010Charron Pierrick
1111 - pierrick@webstart.fr
1212
13-
13+
1414DOCUMENTATION & DOWNLOAD
1515========================
1616
1717Latest version is available on github at :
1818 - http://github.com/adoy/PHP-FastCGI-Client/
1919
20- Documentation can be found on :
20+ Documentation can be found on :
2121 - http://github.com/adoy/PHP-FastCGI-Client/
2222
2323
@@ -28,13 +28,13 @@ This Code is released under the GNU LGPL
2828
2929Please do not change the header of the file(s).
3030
31- This library is free software; you can redistribute it and/or modify it
32- under the terms of the GNU Lesser General Public License as published
33- by the Free Software Foundation; either version 2 of the License, or
31+ This library is free software; you can redistribute it and/or modify it
32+ under the terms of the GNU Lesser General Public License as published
33+ by the Free Software Foundation; either version 2 of the License, or
3434(at your option) any later version.
3535
36- This library is distributed in the hope that it will be useful, but
37- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
36+ This library is distributed in the hope that it will be useful, but
37+ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
3838or FITNESS FOR A PARTICULAR PURPOSE.
3939
4040See the GNU Lesser General Public License for more details.
@@ -43,12 +43,14 @@ See the GNU Lesser General Public License for more details.
4343How can I use it ?
4444==================
4545
46- require('fastcgi.php');
46+ require 'vendor/autoload.php';
47+
48+ use Adoy\FastCGI\Client;
4749
48- $client = new FCGIClient ('localhost', '9000');
50+ $client = new Client ('localhost', '9000');
4951$content = 'key=value';
5052echo $client->request(
51- array(
53+ array(
5254 'GATEWAY_INTERFACE' => 'FastCGI/1.0',
5355 'REQUEST_METHOD' => 'POST',
5456 'SCRIPT_FILENAME' => 'test.php',
0 commit comments