百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

PHP-FastCGI-Client

> 开发工具
开源

轻量级、单文件、用于 PHP 的 FastCGI 客户端

312 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

轻量级、单文件、用于 PHP 的 FastCGI 客户端

PHP FastCGI Client

PHP FastCGI Client is a lightweight single file FastCGI client for PHP.

How can I use it ?

php
request(
	array(
		'GATEWAY_INTERFACE' => 'FastCGI/1.0',
		'REQUEST_METHOD' => 'POST',
		'SCRIPT_FILENAME' => 'test.php',
		'SERVER_SOFTWARE' => 'php/fcgiclient',
		'REMOTE_ADDR' => '127.0.0.1',
		'REMOTE_PORT' => '9985',
		'SERVER_ADDR' => '127.0.0.1',
		'SERVER_PORT' => '80',
		'SERVER_NAME' => 'mag-tured',
		'SERVER_PROTOCOL' => 'HTTP/1.1',
		'CONTENT_TYPE' => 'application/x-www-form-urlencoded',
		'CONTENT_LENGTH' => strlen($content)
	),
	$content
);

Command line tool

Run a call through a network socket:

./fcgiget.php localhost:9000/status

Run a call through a Unix Domain Socket

./fcgiget.php unix:/var/run/php-fpm/web.sock/status

Note: This command line tool is provided for debuging purpose.

Authors

  • Pierrick Charron ([email protected]) - Initial work
  • Remi Collet

License

This project is licensed under the MIT License - for the full copyright and license information, please view the LICENSE file that was distributed with this source code.


Copyrights 2010-2019 Pierrick Charron Inc. All rights reserved.

Issues· 7 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPclientfastcgifcgiphp

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具