+skyler_sdf Posted December 3, 2011 Report Posted December 3, 2011 //http authentication, code <?php $the_right_user='user'; $the_right_password='password'; if(!isset($PHP_AUTH_USER)) { header("WWW-Authenticate: Basic realm=\"PHP book\" "); header("HTTP/1.0 401 Unauthorized"); echo "Canceled by user\n"; exit; } else{ if(($PHP_AUTH_USER=='user') &&(PHP_AUTH_PW=='password')) //see caution below print("The realm is yours<br>"); else print("We don't need your kind<br>"); } ?>
EpureIonut Posted December 3, 2011 Report Posted December 3, 2011 Da este cod PHP si se vrea a fi un formular de autentificare sau ?? ca eu sunt mai batut in cap la ora asta Servicii Web Design Rent a Car Sibiu
+skyler_sdf Posted December 3, 2011 Author Report Posted December 3, 2011 It's just a short EXAMPLE. The WWW-Authenticate mechanism works only under the Apache Web Server, with PHP as a module!
EpureIonut Posted December 3, 2011 Report Posted December 3, 2011 It's just a short EXAMPLE. The WWW-Authenticate mechanism works only under the Apache Web Server, with PHP as a module! this is great, useful Servicii Web Design Rent a Car Sibiu
EpureIonut Posted December 3, 2011 Report Posted December 3, 2011 glumesti? :yes: Asta este stilul meu, putin cam glumet Servicii Web Design Rent a Car Sibiu
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now