Answers for "api basic authentication php"

PHP
0

php http authentication

// Check auth:
if ($_SERVER['PHP_AUTH_USER']){
	echo "Authorized";
} else {
    header('HTTP/1.1 401 Unauthorized');
	echo "Unauthorized";
}
Posted by: Guest on October-26-2021

Code answers related to "api basic authentication php"

Browse Popular Code Answers by Language