PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $url = 'https://www.example.com'; $html = file_get_contents($url); $contentType = ''; foreach ($http_response_header as $header) { if (strpos($header, 'Content-Type') === 0) { $contentType = $header; break; } } echo $contentType;
Show:  
Copy Clear