User Tools

Site Tools


developpement_php-mysql-javascript

JavaScript

PHP

Restreindre l'accès avec authentification HTTP

if ($_SERVER['PHP_AUTH_PW']!='unpass') {
  header('WWW-Authenticate: Basic realm="Authentification (laissez le champs user vide)"');
  header('HTTP/1.0 401 Unauthorized');
  die ("Not authorized");
}
developpement_php-mysql-javascript.txt · Last modified: 2016/10/25 11:48 by keul