mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
fix: cgi exe
This commit is contained in:
17
www/script/index2.php
Normal file
17
www/script/index2.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
header('Content-type: image/png', true);
|
||||
$entityBody = file_get_contents('php://input');
|
||||
echo($entityBody);
|
||||
|
||||
// phpinfo();
|
||||
// echo ("Content-type:text/html\r\n\r\n");
|
||||
// echo ("<html>\n");
|
||||
// echo ("<head>\n");
|
||||
// echo ("<title>Hello World - First CGI Program</title>\n");
|
||||
// echo ("</head>\n");
|
||||
// echo ("<body>\n");
|
||||
// echo ("<h2>Hello World! This is my first CGI program</h2>\n");
|
||||
// echo ("</body>\n");
|
||||
// echo ("</html>\n");
|
||||
?>
|
||||
Reference in New Issue
Block a user