Posts

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; }; ...

Create Bundle in Symfony

Image
Youtube Li nk

Eloquent inside Codeigniter

Ever the diplomat, I’ve been doing my best to use components of the wonderful Laravel in CodeIgniter apps that I’ve been working on for clients. Whilst I’ve switched almost completely to using Laravel as of late, I still work on legacy CI apps (and still work with clients who use CI for new apps, for that matter.) At any rate, Laravel is designed in a modular fashion , allowing me to plug my favourite components into CodeIgniter and use them without too much friction. The most important of these components is, of course, the wonderful Eloquent ORM , which has provided me with as much joy as ActiveRecord did in the land of Ruby. Thankfully, getting Eloquent running inside CodeIgniter was easy. I’ll assume you have Composer installed – if you don’t, you really should. You’ll need to add Laravel’s database component to your composer.json (which includes Eloquent): { " require ": { " illuminate/database ": "4.2.6" } } I al...

How to Index a Website in Google Search in 24 Hrs [Case Study]

Image
Having a website today is an essential part of online presence and it’s important that people or target customer can find your website by your  brand name  in search engine. Many businesses already started adding a blog with their website for  faster indexing  and for more exposure from search engine and social media. Here in this article, I’m going to help you get your site in search engine within no time. Recently I worked on Two websites, one for my client and one for myself. Challenge was to  index a website in Google  within 24 hours. This is not an easy task but not tough too. A proper strategy will help you to put the website in search engine within 24 hours or may be a couple of hours. Google Page rank 3 for a Website with no content? You can try this with any new domain you have bought or any site which you created but you are not getting any  traffic from search engines . very first, step is to check if your site is indexed in Google...

Keyword Difficulty vs. Size of Domain

Image
You might wonder, when it comes to competitive keywords, does Google prefer ranking big domains? This question can be answered by taking a close, detailed look at the relationship between keyword difficulty and the size of the domain. The result of this study is important, because it will lead us to a deeper understanding of the behavior of Google’s ranking algorithm when it comes to ranking competitive keywords (in relation to both small and large domains). Definition of the Factors To quantify keyword difficulty, you will associate it with the keyword searches; the higher the keyword search volume, the more competitive the keyword, in most cases. We can look not only at the amount of search volume, but also the number of indexed pages in Google containing the exact term. The higher the number of competing pages, the more the keyword would tend to be competitive.  Therefore, to give a mathematical definition, keyword difficulty can be approximated by the foll...