Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute PHP Online

<html>
<head>
<title>Online PHP Script Execution</title>
</head>
<body>
<?php
//print_r(get_headers($url));
function get_http_response_code($url) {
  $headers = get_headers('https://vindornyafm.ddns.net:8000/live');
  return substr($headers[0], 9, 3);
}
$get_http_response_code = get_http_response_code('https://vindornyafm.ddns.net:8000/live');
if ( $get_http_response_code == 200 ) {
  echo "OKAY!";
} else {
  echo "Nokay!";
}
?>
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.