You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried it on windows. In example_server.php i set following settings.
But when going to browser 127.0.0.1:8003, am getting Internal Server Error: php-cgi\php-cgi.exe was not found error. function __construct() { parent::__construct(array( 'addr' => "127.0.0.1", 'port' => 8003, 'php_cgi' => "php-cgi\php-cgi.exe", )); }
In httpserver i changed $cgi_stream = fopen("cgi://{$this->php_cgi}", 'rb', false, $context); to $cgi_stream = fopen("$this->php_cgi", 'rb', false, $context); and am getting output somthing like binary data.
Can you please advice me how to setup it. Am using PHP 5.6 & win10
The text was updated successfully, but these errors were encountered:
Path to cgi was not correct. After giving absolute path it work.
Is there a way to use cgi as fast-cgi? I found response time little bit slow.
Also is there a way to restart or stop server?
Thanks for great script
Hi,
I tried it on windows. In example_server.php i set following settings.
But when going to browser 127.0.0.1:8003, am getting Internal Server Error: php-cgi\php-cgi.exe was not found error.
function __construct() { parent::__construct(array( 'addr' => "127.0.0.1", 'port' => 8003, 'php_cgi' => "php-cgi\php-cgi.exe", )); }
In httpserver i changed
$cgi_stream = fopen("cgi://{$this->php_cgi}", 'rb', false, $context);
to$cgi_stream = fopen("$this->php_cgi", 'rb', false, $context);
and am getting output somthing like binary data.Can you please advice me how to setup it. Am using PHP 5.6 & win10
The text was updated successfully, but these errors were encountered: