Skip to content

Instantly share code, notes, and snippets.

@rexlManu
Created January 24, 2020 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rexlManu/549eec263eed1608c8a706cb669f0e0e to your computer and use it in GitHub Desktop.
Save rexlManu/549eec263eed1608c8a706cb669f0e0e to your computer and use it in GitHub Desktop.
Use this to show all websites on a plesk webhosting
<?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