mirror of
https://github.com/Ahwxorg/Binternet.git
synced 2026-03-11 08:54:37 +00:00
15 lines
325 B
PHP
15 lines
325 B
PHP
<?php
|
|
function get_root_domain($url) {
|
|
return parse_url($url, PHP_URL_HOST);
|
|
}
|
|
|
|
function request($url)
|
|
{
|
|
$ch = curl_init($url);
|
|
curl_setopt($ch, CURLOPT_HEADER, false);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
$response = curl_exec($ch);
|
|
|
|
return $response;
|
|
}
|
|
?>
|