How does the UAC mechanism in Windows handle privileged ports like Port 80?

When a program tries to bind to a privileged port like Port 80 in Windows, the User Account Control (UAC) mechanism will prompt the user for permission to elevate the program's privileges to be able to use the port. This is done to ensure that only authorized programs can access privileged ports and prevent potential security risks.

<?php
// Code snippet to request elevated privileges for binding to Port 80 in Windows
if (!@fsockopen('localhost', 80)) {
    die('Port 80 is not available or accessible.');
} else {
    echo 'Port 80 is available and accessible.';
}
?>