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
Technology problems
Search Results
1. How many types of Inheritances used in php and how we achieve it?
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
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
Correct Answer: PEAR(PHP Extension and Application Repository) is a framework and repository for reusable PHP components PEAR is a code repository containing all kinds of php code snippets and libraries PEAR also offers a command-line interface that can be used to automatically install "packages"
Correct Answer: echo() and print() are language constructs in PHP, both are used to output strings The speed of both statements is almost the same echo() can take multiple expressions whereas print cannot take multiple expressions Print return true or false based on success or failure whereas echo doesn't return true or false
Correct Answer: $message is a variable with a fixed name $$message is a variable whose name is stored in $message If $message contains "var", $$message is the same as $var
Correct Answer: Notices, Warnings and Fatal errors are the types of errors in PHP Notices: Notices represents non-critical errors, ie accessing a variable that has not yet been defined By default, such errors are not displayed to the user at all but whenever required, you can change this default behavior Warnings: Warnings are more serious errors but they do not result in script termination ie calling include() a file which does not exist By default, these errors are displayed to the user Fatal errors: Fatal errors are critical errors ie calling a non-existent function or class These errors cause the immediate termination of the script