Skip to content

Instantly share code, notes, and snippets.

@aonic
Created November 6, 2010 22:52
Show Gist options
  • Select an option

  • Save aonic/665784 to your computer and use it in GitHub Desktop.

Select an option

Save aonic/665784 to your computer and use it in GitHub Desktop.
<?php
function purge_experiment($experiment_id) {
$fp = fsockopen("192.168.156.237", 6082, $errno, $errstr, 1);
if (!$fp) {
return false;
} else {
$out = "purge obj.http.X-Exp == $experiment_id\n";
fwrite($fp, $out);
fclose($fp);
return true;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment