Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $cache_path = '/etc/nginx/cache/';
- $url = parse_url($_POST['url']);
- if(!$url)
- {
- echo 'Invalid URL entered';
- die();
- }
- $scheme = $url['scheme'];
- $host = $url['host'];
- $requesturi = $url['path'];
- $hash = md5($scheme.'GET'.$host.$requesturi);
- var_dump(unlink($cache_path . substr($hash, -1) . '/' . substr($hash,-3,2) . '/' . $hash));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement