1. Question:What do you mean by cross-site scripting (XSS)? 

    Answer
    Cross-site scripting (XSS) is a way of injecting malicious JavaScript code into the application. This type of exploit can be used to hijack a user's cookie, which can effectively let the user who injected the code take the ID of any user on the website, simply by linking them to the site with the code added in.

    1. Report
  2. Question:
    What is pagination?
     

    Answer
    pagination refers to the system of numbering pages a list of numbered links usually found at the bottom of the pages.

    1. Report
  3. Question:What is framework? 

    Answer
    Its goal is to enable to developer projects much faster than developers writing code from scratch, by providing a rich set of libraries for commonly needed tasks.

    1. Report
  4. Question:Define flash data in codeigniter? 

    Answer

    Codeigniter supports flash data, data that is only available for one server request, and is than removed. Flash data is very useful, and is usually used for informational massages.


    1. Report
  5. Question:What is form validation? 

    Answer
    Form validation is an important part of any application. It is important that have rules that should be adhered and also helps to keep a layer secure.

    1. Report
  6. Question:List the validation rules in term of Codeigniter? 

    Answer

    The validation rules of Codeignniter are as follows:

    • Required
    • Matches[field_name]
    • Min_length[x]
    • Max_length[x]
    • Exact_length[x]
    • Alpha
    • Alpha_numeric
    • Alpha_dash
    • Numeric
    • Integer
    • Is_natural
    • Is_natural_no_zero
    • Valid_email
    • Valid_emails
    • Valid_ip
    • Valid_base64

    1. Report
  7. Question: What is prepping data? 

    Answer

    Prepping data function helps us to prep the data before use apply rules to it. We can use various prepping function that are:

    • Xss_clean
    • Prep_for_form
    • Prep_url
    • Strip_image_tags
    • Encode_php_pags

    1. Report
  8. Question:Define delimiter. 

    Answer
    A delimiter is a sequence of one or more characters used to specify the boundary between separate, independent regions in plain text or other data streams. An example of a delimiter is the comma character, which acts as a field delimiter in a sequence of comma-separated values.

    1. Report
  9. Question:What is callback? 

    Answer
     A callback is simply a function in your controller code that is used in place,or along with, a rule.

    1. Report
  10. Question:What is method chaining? 

    Answer


    Method chaining enables us to vastly simplify the syntax by connecting multiple functions. Example:

    $this->db->select(‘name,email’)->from(‘users’)->where(‘id’,5)->limit(10,20);


    1. Report
Copyright © 2024. Powered by Intellect Software Ltd