preg_match('/\/\/(.+?)\//', $string, $result);
<?php $text = 'http://antichat.ru/kill.php'; $url = parse_url($text); print_r($url);
parse_url('http://site.com/bla-bla-bla',PHP_URL_HOST);
header('Content-Description: File Transfer'); header('Content-Disposition: attachment; filename="db.txt"'); header('Content-Transfer-Encoding: binary'); header('Content-Type: application/octet-stream'); readfile('db.txt');