Skip to content

Commit 32e06d1

Browse files
committed
Init commit
1 parent 9493fe8 commit 32e06d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Server.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ private function handleRequest(false|Socket $client, Request $request): void
4444
'QUERY_STRING' => $request->query,
4545
];
4646

47-
$cmd = $request->path;
47+
$cmd = $this->public .$request->path;
4848
$params = str_replace('+', ' ', $request->query);
4949

5050
$descriptor_spec = [
5151
0 => ['pipe', 'r'], // stdin
5252
1 => ['pipe', 'w'], // stdout
5353
2 => ['pipe', 'w'], // stderr
5454
];
55-
var_dump($cmd);
56-
$process = proc_open($cmd . ' ' . $params, $descriptor_spec, $pipes, $this->public , $env);
55+
echo "Running: $cmd \n";
56+
$process = proc_open($cmd . ' ' . $params, $descriptor_spec, $pipes, $this->public, $env);
5757
if (!is_resource($process)) {
5858
echo 'Error opening CGI program: ' . $cmd . "\n";
5959
return;

0 commit comments

Comments
 (0)