Created
December 21, 2016 10:20
-
-
Save JRMorris77/d3354f41b64c65bff5954bf2a16d1bda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<title>Info</title> | |
<style type="text/css" media="screen"> | |
body{ | |
margin:0; | |
padding:0; | |
text-align:left; | |
} | |
.info { | |
width:80%; | |
height:200px; | |
overflow:auto; | |
margin:1em auto; | |
padding:1em; | |
background: #efefef; | |
border:1px solid silver; | |
} | |
h2 { | |
margin:1em; | |
text-align:center; | |
} | |
</style> | |
</head> | |
<body> | |
<h2>Current Directory Listing</h2> | |
<div class="info"> | |
<?php | |
$ls = shell_exec ('ls -al .'); | |
echo "<pre>$ls</pre>"; | |
?> | |
</div> | |
<h2>Disk Usage</h2> | |
<div class="info"> | |
<?php | |
$du = shell_exec ('du -hs ./*'); | |
echo "<pre>$du</pre>"; | |
?> | |
</div> | |
<h2>PHP Information</h2> | |
<div class="info"> | |
<?php | |
phpinfo(); | |
?> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment