Friday, March 28, 2014

How to get client ip address using codeigniter?



Using input class of codeigniter you find out client ip address.

Input Class

The Input Class serves two purposes:
It pre-processes global input data for security.
It provides some helper functions for fetching input data and pre-processing it.

Click Here For Detail


Thanks.

Tuesday, March 18, 2014

Back button disable after logout using CodeIgniter

Back button disable after logout using CodeIgniter

 You may add the following PHP Code in your PHP Page.

 

For Detail Click here
Thanks.

Thursday, March 13, 2014

How to get browser name in codeIgniter?

User Agent Class:

The User Agent Class provides functions that help identify information about the browser, mobile device, or robot visiting your site. In addition you can get referrer information as well as language and supported character-set information.

Click Here for detail

Interactive Voice Response(IVR) System


What Is An IVR System?

IVR stands for Interactive Voice Response, a technology that automates routine customer service interactions by allowing callers to interact using touch tone digits or their voice.  A basic example of an IVR application is an automated attendant or voice menu: callers are presented with a recorded menu and respond by selecting a digit or, in some cases, by entering an extension number. The automated attendant eliminates the need for a live operator to handle the call.
More complex applications include prescription refill for pharmacies, password reset, voice surveys, account balance inquiries, flight status checks, package tracking, pre-sales qualification questionnaires, etc. The key idea is to automate a routine, repetitive task that would otherwise require the time and effort of an employee. The savings potential gives IVR solutions a very rapid return on investment (ROI), as on server can potentially eliminate multiple live agents.
IVR systems are historically sold at a premium, to large degree because of the strong ROI. A system with four ports (and thus capable of processing four concurrent calls) could cost thousands of dollars.  Like conference bridging, voice messaging and other communications applications, IVR is generally an add-on component for a traditional phone system.

Key Facts & Features

All IVR systems are capable of prompting (playing audio) and collecting digits from the caller.  Replacing the touch-tone interface with a voice interface requires additional software and significantly increases the expense of the platform.
IVR platforms usually provide a means for recording audio from the caller.  This can be used to record prompts, but the quality is generally quite poor.  Most systems will also accept pre-recorded audio, and there are professional voice talents that offer custom prompts.
IVR applications frequently interact with other data systems. This is often done using direct access to relational database systems through technologies like ODBC or by using making web service calls using protocols like REST or SOAP.
Many IVR systems are sold as a runtime platform, meaning that business applications will need to be purchased or custom built.  Frequently the service creation environment is an additional charge.
Traditional IVR systems interface with the PSTN or a PBX system using either analog or digital trunks.  More recent IVR systems support connections over IP using SIP.  Legacy platforms tend to license by the port, while IP systems license by the concurrent call.
IVR systems can be connected directly to the PSTN or they can be integrated with a business phone system. Systems that are directly connected to the PSTN support "terminal" applications -- applications that never require redirecting the caller to a live agent.  Integrated IVR systems, on the other hand, can route calls to other resources within a business or even outside of it.

Key Benefits

The primary benefit of IVR is the savings compared to hiring staff to handle boring and repetitive tasks.  Automating basic customer service functions makes sense in situations where the task is relatively simple and the input and output values can be conveyed by phone.
Another benefit is the unlimited hours that an IVR system can put in each day. With a properly configured IVR system your company can offer top notch customer service even when closed for the evening or weekend.
IVR systems can easily support multiple languages, allowing your business to service international markets abroad and multi-lingual customers at home.


Sunday, March 9, 2014

Call Center


What Is A Call Center?

Call centers special offices that are purpose-built to handle a large volume of phone calls. Call centers typically handle customer service, support, telemarketing, telesales and collections functions. The employees who staff call centers are referred to as “agents” or “customer service representatives” (frequently abbreviated as CSRs). Call centers range from very small informal operations to massive, highly optimized sites with hundreds or even thousands of agents.
Call centers use specialized telephone equipment to maximize productivity. Specialized telephony switching systems called “Automatic Call Distributors” or ACDs are used to queue and route inbound calls to agents based on a wide variety of criteria. Outbound calls are frequently generated by an automated system called a “Predictive Dialer” that monitors the status of agents and places calls on their behalf. Other common call center tools include desktop integration (frequently referred to as “screen pop”), Interactive Voice Response (IVR) applications, call recording solutions, productivity monitoring utilities, workforce planning systems and various methods of historical and near real-time reporting.

Automatic Call Distributor (ACD)

An ACD is a specialized phone system that routes (distributes) incoming calls to teams of agents assigned to various call queues. Queues are simply ordered list of calls to be dispatched to agents. The ACD oversees the process of placing incoming calls into the proper queue, assigning priority to those calls based on various factors (the order of their arrival, the importance of the caller, the urgency of the caller’s situation), and ultimately dispatching those calls to an available agent. The algorithm by which calls are dispatched is called the queue strategy.

Queue Strategies

A simple ACD system consists of a source of calls (a pool of lines, trunks or virtual trunks), a FIFO (first-in, first-out) queue and a pool of agents who are selected using a “ring-all” strategy. In this case, when a call arrives the system rings the phones of all agents who are not already on a call. The first agent to answer the call is connected with the calling party. All the other phones stop ringing.
A more complex (and likely more useful) configuration would have the call offered to the agent who had been in the idle state longest. This “most idle” strategy is frequently used when all agents are considered equally qualified to handle a task. Other common strategies include round robin, linear hunt, least-recently-called, fewest calls and random. In some cases, the ACD can weight its selection based on the caller’s need (generally collected using an IVR application) and a list of skills associated with each agent. This is generally referred to as “skills-based routing”.

Caller Experience

While waiting in queue, callers generally hear a combination of marketing messages, queue status messages and music. Marketing messages are simply audio recordings that are piped into the queue on a periodic basis. Status messages provide the caller with specific information about their status — the number of callers ahead of them in the queue, the estimated wait time and sometimes alternatives to waiting in queue. Some more advanced call queueing systems support virtual queueing. A virtual queueing system allows callers to provide a callback number, then disconnect. Their position in the queue is preserved and when an agent becomes available the system places an outbound call to the caller.

Interactive Voice Response

Interactive Voice Response or IVR applications are another technology frequently integrated with ACDs. IVR systems prompt callers for data items — things like account numbers, prescription refill codes or package tracking numbers — and use those values to look up caller-specific information from remote data sources. In some cases the IVR application can handle an entire transaction without human intervention. In other cases the IVR feeds data to the ACD to help it route the call appropriately.

Screen Pop

To increase agent productivity, desktop business applications are frequently integrated with the ACD in such a way that data related to the caller is automatically displayed when a call is delivered. This is commonly referred to as either “Computer-Telephony Integration” or simply as a “screen pop”. There are several ways to accomplish this. In some cases the business applications support a CTI standard like TAPI or TSAPI. In other cases the applications are custom and communicate directly with the ACD or a “CTI server” that acts as a proxy for the ACD.

  
Call Recording

Call centers frequently record calls either to monitor the performance of their agents or for regulatory compliance. Call recording systems handle the process of capturing the audio from all participants in the call, mixing it, storing it and producing an index that allows administrators or regulators to locate and review recordings. A properly built recording system makes it easy to pinpoint conversations using common keys including Caller ID, date, time and agent ID.


Friday, March 7, 2014

One way Hash function and Implementation using CodeIgniter in PHP

What is Hash Function?

A cryptographic hash function is a hash function that takes an arbitrary block of data and returns a fixed-size bit string, the cryptographic hash value, such that any change to the data will change the hash value. One way hash function is not decodeable.


Why we will use Hash Function?

The main concerns of computer security are:

  1. data privacy/confidentiality
  2. data integrity
  3. service availability
  4. user authenticity

Different hash functions-
Hash Function
Size(bit)
MD2
64bit
MD5
128bit
SHA1
160 bit
SHA256
256bit
SHA384
384bit
SHA512
512bit

Hash function Implementation using CodeIgniter in PHP-

$this->load->library('encrypt');

$this->encrypt->sha1();

SHA1 encoding function. Provide a string and it will return a 160 bit one way hash. Note: SHA1, just like MD5 is non-decodable.

Example:
$hash = $this->encrypt->sha1('Some string');

Many PHP installations have SHA1 support by default so if all you need is to encode a hash it's simpler to use the native function:

$hash = sha1('Some string');



Tuesday, March 4, 2014

Email validation in Codeigniter Form Module

For email validation in Codeigniter Form Module

You may use  valid_email () function of $this->load->helper('email') library

PHP Script:

$this->form_validation->set_rules('email', 'Email', 'required|callback_valid_mail');



public function valid_mail()
            {
           
                        $email = $this->input->post('email');
                        $this->load->helper('email');

                        if (valid_email($email)) {
                                    return TRUE;
                         }else{
                                    $this->form_validation->set_message('valid_mail', 'Email ID is Invalid!!');
                                    return FALSE;
                         }

            }

How to Create ZIP using CodeIgniter?

How to Create ZIP using CodeIgniter?


Step1- Create a Folder(Name ZIP) in your Application Folder
(Example: C:\wamp\www\mms\zip)

Step2- Create a function in a Controller.

Public function gen_zip(){

$zipfolder=”Archive.zip";

$filename='file1”;
$data=”This is file1”;
$this->load->library('zip');
$this->zip->add_data($filename, $val);
$this->zip->archive($_SERVER['DOCUMENT_ROOT'].'/mms/zip/'.$zipfolder);
/*
$_SERVER['DOCUMENT_ROOT'] is Application Root Directory.
Here C:\wamp\www\ is Document Root.
*/


$filename='file2”;
$data=”This is file2”;
$this->load->library('zip');
$this->zip->add_data($filename, $val);
$this->zip->archive($_SERVER['DOCUMENT_ROOT'].'/mms/zip/'.$zipfolder);
/*
$_SERVER['DOCUMENT_ROOT'] is Application Root Directory.
Here C:\wamp\www\ is Document Root.
*/
}

I hope that it will be help you.

Saturday, March 1, 2014

How to upload a HTML file into your blogspot and verify your blog-

How to upload a HTML file into your blogspot and verify your blog-

1.At first download your Verify HTML file(Example - 1. Download this HTML verification file. [googlea78602980525ac1f.html])
2. Then open your uploaded HTML file with your browser.
3. Now click your mouse right button and view source code of this HTML file.
4. Select all code
5. Now log in you Blogger account and create any new page with any name.
6. Click on your page HTML option and remove all code. Then paste your copied codes 7. Save and view your page.
8. Log in your account into www.googl.com/webmasters. Select HTML file upload option Click on Verify

9. Hope that your blog will be verified.