Skip to main content

Posts

Showing posts from February, 2015

Cannot Modify Header Information - Headers Already Sent : How To Fix

This error message gets triggered when anything is sent before you send HTTP headers (with setcookie or header). Common reasons for outputting something before the HTTP headers are: 1. Accidental whitespace, often at the beginning or end of files, like this: the space before "php opening tag" To avoid this, simply leave out the closing ?> - it's not required anyways. 2. " Byte order marks " at the beginning of a php file. Examine your php files with a hex editor to find out whether that's the case. They should start with the bytes 3F 3C. You can safely remove the BOM EF BB BF from the start of files. 3. Explicit output, such as calls to echo, printf, readfile, passthru, code before php opening tag etc. 4. A warning outputted by php, if the display_errors php.ini property is set. Instead of crashing on a programmer mistake, php silently fixes the error and emits a warning. While you can modify the display_errors or error_reporting configurations

MVC Interview Questions

What are the 3 main components of an ASP.NET MVC application? 1. M - Model 2. V - View 3. C - Controller In which assembly is the MVC framework defined? System.Web.Mvc Is it possible to combine ASP.NET webforms and ASP.MVC and develop a single web application? Yes, it is possible to combine ASP.NET webforms and ASP.MVC and develop a single web application. What does Model, View and Controller represent in an MVC application? Model: Model represents the application data domain. In short the applications business logic is contained with in the model. View: Views represent the user interface, with which the end users interact. In short the all the user interface logic is contained with in the UI. Controller: Controller is the component that responds to user actions. Based on the user actions, the respective controller, work with the model, and selects a view to render that displays the user interface. The user input logic is contained with in the controller. What is the