Skip to content

Instantly share code, notes, and snippets.

@athlan
Last active March 6, 2016 20:35
Show Gist options
  • Save athlan/f56ca254e7ec972c19c2 to your computer and use it in GitHub Desktop.
Save athlan/f56ca254e7ec972c19c2 to your computer and use it in GitHub Desktop.
test-writable.php
<?php
var_dump(is_writable('./')); // check if this script can write something to directory
var_dump(get_current_user ()); // display user name that executing this PHP file</pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment