Skip to content

Instantly share code, notes, and snippets.

@theking2
Last active February 25, 2026 09:45
Show Gist options
  • Select an option

  • Save theking2/057d0acdbd74acc05bc83b5cb9bfc1f9 to your computer and use it in GitHub Desktop.

Select an option

Save theking2/057d0acdbd74acc05bc83b5cb9bfc1f9 to your computer and use it in GitHub Desktop.
copy path

Copy path

  1. upload the path.php to a location you want the path of
  2. run the https://<host>/path.php file, and click Copy path
  3. paste the path where you really need it.
<?php $path = realpath(__DIR__); ?>
<button onclick="navigator.clipboard.writeText('<?=$path?>').then(() => alert('Copied!'))">
Copy Path
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment