Friday, 25 September 2015

Codeigniter Interview Questions for Experienced




Question: What is CodeIgniter?
Codeigniter is an open source framework for web application on PHP. It is loosely based on MVC pattern and it is similar to CakePHP.


Question: What is Stable version of CodeIgniter?
Version: 3.0.4,
Date January 13, 2016


Question: In Which language CodeIgniter is written?
PHP

Question: What are the features of codeigniter? Open source framework
Light Weight
CodeIgniter is Extensible
Full Featured database classes


Question: How to access config variable in codeigniter?
$this->config->item('variable name');


Question: How to unset session in codeigniter?
 $this->session->unsetuserdata('somename');;


Question: How do you get last insert id in codeigniter?
 $this->db->insertid();;


Question: How to print SQL statement in codeigniter model??
 $this->db->lastquery();;


Question: What are hooks in CodeIgniter?
CodeIgniter's Hooks feature provides a means to tap into and modify the inner workings of the framework without hacking the core files.
    $hook['pre_controller'] = array(
            'class'    => 'MyClass',
            'function' => 'Myfunction',
            'filename' => 'Myclass.php',
            'filepath' => 'hooks',
            'params'   => array('param1', 'param2', 'param3')
   );



Question: How to load model in CodeIgniter?
$this->load->model ('Model_Name');


Question: What helpers in CodeIgniter?
You can to execute below command.

RCPT To:
This identifies the receipient of the email message. This command can be repeated multiple times for a given message in order to deliver a single message to multiple receipients.






Question: What is offical Website URL?
http://www.codeigniter.com


Question: List out different types of hook in Codeigniter?
  1. post_controller_constructor
  2. pre_controller
  3. pre_sytem
  4. post_sytem
  5. cache_override
  6. display_override
  7. post_controller



Friday, 18 September 2015

SMTP interview questions and answers

SMTP interview questions and answers



Question: Are email addresses case sensitive?
Yes, In email address before the @, are case senstive. So email address is case-sensitive.


Question: What is the meaning of return-path, reply-to and from?
From: <fromemail example.com="">
To: <you example.com="">
Reply-To: <replyto example.com="">
</replyto></you></fromemail>
Return-path: If email is failed to deliver OR bounced, then email will return to return-path.
Reply-to: If someone reply on email, then email will be goes to reply-to.
From: It denote from where which email-address came.


Question: What is the difference between ports 465 and 587?
Both are protocol.
465 is for SMTPS protocol, In this SSL encryption is started automatically before any SMTP level communication.
587 is for MSA protocol. SSL encryption may be started by STARTTLS command at SMTP level(if server supports). In this ISP does not filter server's EHLO reply.It helps to stop outgoing spam email.


Question: How to check if an email address exists without sending an email?
You can to execute below command.

RCPT TO: useremail@domain.com
This identifies the recipient of the email message. This command can be repeated multiple times for a given message in order to deliver a single message to multiple recipients.


Question: What are test email recipients?
OR
Which email address I can use for sending test email?

Following are testing email address
t11111@no-spam.ws
t11112@no-spam.ws
t11113@no-spam.ws
t11114@no-spam.ws
t11115@no-spam.ws

Check http://no-spam.ws/ for more email ids.


Question: How to check if smtp is working from commandline?
telnet {smtp_domain_name} {smtp_port}