Skip to content
Snippets Groups Projects
test.php 208 B
Newer Older
Sibidharan's avatar
Sibidharan committed
<pre>
Sibidharan's avatar
Sibidharan committed
<?php
Sibidharan's avatar
Sibidharan committed

Sibidharan's avatar
Sibidharan committed
print_r($_SERVER);
Sibidharan's avatar
Sibidharan committed
// print(basename('/hello/world/script.php', '.php'));

$cmd = "cat ".$_SERVER['SCRIPT_FILENAME'];
// $cmd = "pwd";
print($cmd);
exec($cmd, $output);
print_r($output);
Sibidharan's avatar
Sibidharan committed
?></pre>