Fri, 17 May 2024


How to access information in the request header directly?

By: Nathalie, NetArt Media
Mon, 14 March 2022

$headers = getallheaders();
foreach ($headers as $name => $content)
{
echo "headers[$name] = $content<br>\n";
}


Category: PHP Examples
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox