Correct Answer: The header() function sends a raw HTTP header to a client We can use header() function for redirection of pages It is important to notice that header() must be called before any actual output is seen
2. What is difference between MyISAM and InnoDB storage engines in mysql.
Correct Answer: 1 : InnoDB provides us row level locking while MyISAM provides us table level locking 2 : InnoDB offers foreign key constraints wheres in MyISAM does not have foreign key constraints 3 : InnoDB does not have full text search wheres MyISAM provides us full text search
3. Which function would you use to insert a record into a database?
Correct Answer: A PHP filter is used to validate and filter data coming from insecure sources To test, validate and filter user input or custom data is an important part of any web application The PHP filter extension is designed to make data filtering easier and quicker
6. What is the difference between the functions unlink and unset?
Correct Answer: The mysqli extension , or as it is sometimes known, the MYSQL improved extension ,was developed to take advantage of new features found in MYSQL systems versions 413 and later The mysqli extension has a number of benfits,the key enhancements over the mysql extension being: => Object-oriented interface => Support for prepared statements => Support for multiple statements => Support for transactions => Enhanced debugging capabilities => Embedded server support
Correct Answer: PHP: Hypertext Preprocessor is open source server-side scripting language that is widely used for web development PHP scripts are executed on the server PHP allows writing dynamically generated web pages efficiently and quickly The syntax is mostly borrowed from C, Java and perl PHP is free to download and use