Sun May 19 17:44:47 CEST 2024
System Output: Sun May 19 17:44:47 CEST 2024
Exec Output: Sun May 19 17:44:47 CEST 2024
show code
<div style="background:#000;color:#fff">
<?php
$cmd = "/bin/date";
$output = system($cmd);
printf("System Output: $output\n");
exec($cmd, $results);
printf("Exec Output: {$results[0]}\n");
?>
</div>