User Tools

Site Tools


developpement_php-mysql-javascript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developpement_php-mysql-javascript [2016/10/25 11:48]
keul created
developpement_php-mysql-javascript [2018/05/26 18:00]
Line 1: Line 1:
-===== JavaScript ===== 
-http://​codepen.io/​keul/#​ 
- 
- 
-===== PHP ===== 
-==== Restreindre l'​accès avec authentification HTTP ==== 
-<​code>​ 
-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"​);​ 
-} 
-</​code>​ 
  
developpement_php-mysql-javascript.txt · Last modified: 2018/05/26 18:00 (external edit)