Saturday, September 24, 2011

// // Leave a Comment

HTTP authentication via PHP

Here's a small snippet that let's you implement htaccess style http authentication in your PHP scripts. Just define user and password and you are ready to go !







Go Here To download the code: http://pastebin.com/9Xu02jLD

Make sure that this code block is present in topmost of your scripts or it'll give errors and authentication will be messed up.