PHP Interview Questions for freshers 03
What is meant by nl2br()?
Nl2br Inserts HTML line breaks before all newlines in a string string nl2br (string); For example: echo nl2br(“god bless
you”) will output “god bless
you” to your browser.
What are the current versions of apache, php, and mysql?
PHP: php 5.3
MySQL: MySQL 5.5
Apache: Apache 2.2
What are the reasons for selecting lamp (Linux, apache, mysql, php) instead of combination of other software programs, servers and operating systems?
All of those are open source resource. Security of linux is very very more than windows. Apache is a better server that IIS both in functionality and security. Mysql is world most popular open source database. PHP is more faster that asp or any other scripting language.
How can we encrypt and decrypt a data present in a mysql table using mysql?
AES_ENCRYPT () and AES_DECRYPT ()