1
1
_________________________
2
-
2
+
3
3
PHP FastCGI Client README
4
4
_________________________
5
-
5
+
6
6
7
7
AUTHOR & CONTACT
8
8
================
9
9
10
10
Charron Pierrick
11
11
- pierrick@webstart.fr
12
12
13
-
13
+
14
14
DOCUMENTATION & DOWNLOAD
15
15
========================
16
16
17
17
Latest version is available on github at :
18
18
- http://github.com/adoy/PHP-FastCGI-Client/
19
19
20
- Documentation can be found on :
20
+ Documentation can be found on :
21
21
- http://github.com/adoy/PHP-FastCGI-Client/
22
22
23
23
@@ -28,13 +28,13 @@ This Code is released under the GNU LGPL
28
28
29
29
Please do not change the header of the file(s).
30
30
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
34
34
(at your option) any later version.
35
35
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
38
38
or FITNESS FOR A PARTICULAR PURPOSE.
39
39
40
40
See the GNU Lesser General Public License for more details.
@@ -43,12 +43,14 @@ See the GNU Lesser General Public License for more details.
43
43
How can I use it ?
44
44
==================
45
45
46
+ use FastCGI\Client;
47
+
46
48
require('fastcgi.php');
47
49
48
- $client = new FCGIClient ('localhost', '9000');
50
+ $client = new Client ('localhost', '9000');
49
51
$content = 'key=value';
50
52
echo $client->request(
51
- array(
53
+ array(
52
54
'GATEWAY_INTERFACE' => 'FastCGI/1.0',
53
55
'REQUEST_METHOD' => 'POST',
54
56
'SCRIPT_FILENAME' => 'test.php',
0 commit comments