Posts

OSI Security Architecture

OSI Security Architecture OSI SECURITY ARCHITECTURE   Security architecture for OSI offers a systematic way of defining security requirements and characterizing the approaches to achieve these requirements. It was developed as an international standard. The OSI security architecture focus on security attack, mechanism, and services. These can be defined briefly as fallows: Security Attack:  Any action that compromise the security of information owned by an organization. Security Mechanism:  A process that is designed to detect, prevent or recover from a security attack. And security mechanism is a method which is used to protect your message from unauthorized entity. Security Services:  Security Services is the services to implement security policies and implemented by security mechanism. SECURITY ATTACKS   Passive Attacks: Eavesdropping communications and releasing of messages. Traffic analysis on the identities, location...

Eloqent Usage

<?php /* |-------------------------------------------------------------------------- | Return a Collection of Objects |-------------------------------------------------------------------------- */ // collection of all users $sql = " select * from users " ; $users = User :: all(); $users = User :: get(); // name and email of all users $sql = " select name, email from users " ; $attributes = [ ' name ' , ' email ' ]; $users = User :: get( $attributes ); // collection of all users filtered by where clause $sql = " select * from users where active = 1 " ; $users = User :: where( ' active ' , 1 ) -> get(); $users = User :: where( ' name ' , ' like ' , ' J% ' ) -> get(); // collection of all users filtered by multiple where clauses $sql = " select * from users where act...

writing htaccess files

Image
Note: .htaccess file will be in hidden format, please change your folder and file settings to view this file. How to Create a .htaccess File? Open any text editor application and file save as with .htaccess name and enable mod_rewrite extension in php.ini file in Apache Web Server configurations. Default directory Listing Disable directory Listing If you want to disable folder files listing, include following code. # Disable Directory Browsing Options All -Indexes Error Pages Here error page is redirecting to error.html . errorDocument 400 http://www.youwebsite.com/error.html errorDocument 401 http://www.youwebsite.com/error.html errorDocument 404 http://www.youwebsite.com/error.html errorDocument 500 http://www.youwebsite.com/error.html RewriteEngine On it is turn on Rewrite Rules in Apache Server. if you want to turn off, just change the value to off . RewriteEngine on Domain Redirection .htacces code for redirecting yourwebsite.com to ...

Build your own PHP Framework with Symfony Components

http://www.sitepoint.com/build-php-framework-symfony-components/

Angular table with edit,update and delete

<!DOCTYPE html> <html lang="en" ng-app='MyApp' > <head> <title></title> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.5/angular.min.js"></script> <script> var app=angular.module('MyApp', []); app.controller('maincontroller',function($scope){ $scope.items=[ { name:"John Doe", city:'Ludhiana', state:'new York' }, { name:"John cena", city:'hariana', state:'USA' }, { name:"sunny", city:'Bombay', state:'Punjab' } ]; $scope.del=function(item){ console.log(item); }; $scope.add=true; $scope.addEnabled=function(){ $scope.add=false; } $scope.addItem=function(item){ console.log(item); $scope.items.push(item); $scope.add=true; }; ...