Horje
How to get Domain http request info in PHP

To retrieve all request headers using the getallheaders() function in PHP, you can follow these steps:


How to extract php domain http request

Follow the Example.
index.php
Example: PHP
<?php
$all_headers = getallheaders();
foreach ($all_headers as $name => $value) {
   echo "$name: $value";
}
?>

Output should be:

How to extract php domain http request





Category:
Web Tutorial
Sub Category:
PHP Domain Tutorial
Uploaded by:
Admin


Read Article
https://horje.com/learn/1434/reference