Posts

Showing posts from July, 2014

Basic HTTP Authentication with PHP

Image
HTTP authentication protection that can be used to restrict access to a page. This causes the browser to show a pop up message box to enter username and password. Below is a sample code for HTTP authentication: <?php if(!defined('PHP_AUTH_USER')){     define('PHP_AUTH_USER','root'); } if(!defined('')){     define('PHP_AUTH_PW','toor'); } if (!isset($_SERVER['PHP_AUTH_USER'])) {     header('WWW-Authenticate: Basic realm="Restricted Area"');     header('HTTP/1.0 401 Unauthorized');     echo 'You are not authorized to access this page.';     exit; } else {     if( $_SERVER['PHP_AUTH_USER']==PHP_AUTH_USER &&          $_SERVER['PHP_AUTH_PW']==PHP_AUTH_PW){                 //do your operation here.     }else{                header('WWW-Authenticate: Basic realm="Authorization"');                header('HTTP/1.0 401 Unauthor

FightTVplus is available in Roku

Image
FightTV Plus Roku Channel is available in Roku Store now. This channel offers you the best of MMA, Boxing, Wrestling videos in HD and SD quality. All you have to do is subscribe to this channel which is only at $4.99.  You can subscribe/install the channel from http://www.roku.com/channels/#!details/44370/fighttv-plus . For more ease of use, android app and iOS app are on the way to respective stores. Very soon its coming on Chromecast too. You can also signup for email updates at http://fighttvplus.com/  to get updates about the new video uploads and features added to Roku , Android and iOS apps.