Created
December 16, 2021 14:10
-
-
Save acosonic/4470375cb384d490b8fc9dfd14f568b7 to your computer and use it in GitHub Desktop.
Flush memcached via PHP file
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 | |
$socket = fsockopen("localhost", "11211", $errno, $errstr); | |
if($socket) { | |
echo "Connected. "; | |
} | |
else { | |
echo "Connection failed"; | |
} | |
fputs($socket, "flush_all\r\n"); | |
$buffer = ""; | |
fclose($socket); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment