Created
July 5, 2018 19:20
-
-
Save tml/5575091fb1bce7431dc37cbaa9628342 to your computer and use it in GitHub Desktop.
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 | |
$path = ''; | |
foreach(array_filter(explode('/', '/var/run/memcached/memcached.socket')) as $p) { | |
$path .= '/'.$p; | |
if (file_exists($path)) { | |
echo "{ '$path' : ", json_encode(stat($path)), "} \n"; | |
} else { | |
echo "PHP cannot see $path.\n"; | |
exit(1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment