small changes in cgi tests
This commit is contained in:
@@ -223,7 +223,7 @@ void Webserv::_exec_cgi_script(int fd)
|
||||
env[4] = NULL;
|
||||
// save STDOUT
|
||||
save_stdout = dup(STDOUT_FILENO);
|
||||
// inside chil process
|
||||
// inside child process
|
||||
if (fork() == 0)
|
||||
{
|
||||
dup2(fd, STDOUT_FILENO);
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
echo "BEGIN PHP-CGI\n-----------\n\n";
|
||||
//phpinfo();
|
||||
echo getenv('REQUEST_METHOD');
|
||||
//echo $_POST['REQUEST_METHOD'];
|
||||
echo $_POST['REQUEST_METHOD'];
|
||||
echo "\n\n-----------\nEND PHP-CGI\n\n";
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user