Question : php shell script
Answered by : vastemonde
<?php
$output = shell_exec('cat /etc/hosts');
echo "<pre>$output</pre>";
?>
Source : | Last Update : Sun, 28 Mar 21
Question : php interactive shell
Answered by : you
<?php
// Start an interactive PHP shell
$shell = readline("Enter PHP code: ");
eval($shell);
?>
Source : | Last Update : Tue, 19 Sep 23