Last active
March 6, 2016 20:35
-
-
Save athlan/f56ca254e7ec972c19c2 to your computer and use it in GitHub Desktop.
test-writable.php
This file contains hidden or 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 | |
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