Created
January 24, 2020 21:44
-
-
Save rexlManu/549eec263eed1608c8a706cb669f0e0e to your computer and use it in GitHub Desktop.
Use this to show all websites on a plesk webhosting
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
<?php | |
exec("cd ../.. && ls", $output); | |
foreach(json_decode(json_encode($output)) as $dir){ | |
echo '<a href="http://'.$dir.'">'.$dir.'</a><br>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment