Skip to content

Serve PHP pages

Sergey Mudrik edited this page Apr 19, 2018 · 2 revisions

PHP page (page.php):

<title>PHP</title>
<h1>This PHP page</h1>

<p><?
    parse_str($_SERVER['QUERY_STRING'], $_GET);
    echo "Hello from php: " . htmlspecialchars($_GET["var"]);
?></p>

Command:

shell2http -cgi /php 'php page.php'

URL:

http://localhost:8080/php?var=test

Clone this wiki locally