Category Archives: PHP

PHP Interview Questions and Answers – Part 8

121. What is the functionality of the functions STRSTR() and STRISTR()? string strstr ( string haystack, string needle ) returns part of haystack string from the first occurrence of needle to the end of haystack. This function is case-sensitive. stristr() is idential to strstr() except that it is case insensitive. 122. When are you supposed


PHP Interview Questions and Answers – Part 7

111. What is meant by urlencode and urldecode? urlencode() returns the URL encoded version of the given string. URL coding converts special characters into % signs followed by two hex digits. For example: urlencode(“10.00%”) will return “10%2E00%25″. URL encoded strings are safe to be used as part of URLs. urldecode() returns the URL decoded version


PHP Interview Questions and Answers – Part 6

101. What’s PHP ? The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. 102. What Is a Session? A session is a logical object created by the PHP engine to allow you to preserve


PHP Interview Questions and Answers – Part 5

81 How we load all classes that placed in different directory in one PHP File , means how to do auto load classes by using spl_autoload_register(‘autoloader::funtion’); Like below class autoloader { public static function moduleautoloader($class) { $path = $_SERVER[‘DOCUMENT_ROOT’] . “/modules/{$class}.php”; if (is_readable($path)) require $path; } public static function daoautoloader($class) { $path = $_SERVER[‘DOCUMENT_ROOT’] .


PHP Interview Questions and Answers – Part 4

61 What are the other commands to know the structure of table using MySQL commands except explain command? describe Table-Name; 62 How many tables will create when we create table, what are they? The ‘.frm’ file stores the table definition. The data file has a ‘.MYD’ (MYData) extension. The index file has a ‘.MYI’ (MYIndex)


PHP Interview Questions and Answers – Part 3

41 How can we optimize or increase the speed of a MySQL select query? • first of all instead of using select * from table1, use select column1, column2, column3.. from table1 • Look for the opportunity to introduce index in the table you are querying. • use limit keyword if you are looking for


PHP Interview Questions and Answers – Part 2

21. How can we encrypt the username and password using PHP? The functions in this section perform encryption and decryption, and compression and uncompression: encryption decryption AES_ENCRYT() AES_DECRYPT() ENCODE() DECODE() DES_ENCRYPT() DES_DECRYPT() ENCRYPT() Not available MD5() Not available OLD_PASSWORD() Not available PASSWORD() Not available SHA() or SHA1() Not available Not available UNCOMPRESSED_LENGTH() 22 What are


PHP Interview Questions and Answers – Part 1

1 What is Full form of PHP ? Who is the father or inventor of PHP ? Rasmus Lerdorf is known as the father of PHP that started development of PHP in 1994 for their own Personal Home Page (PHP) and they released PHP/FI (Forms Interpreter) version 1.0 publicly on 8 June 1995 But in


  • Email Subscription

    Sign-up for our email newsletter and get free job alerts, current affairs and GK updates regularly.

    Subscribe Here

  • Twitter Followers

    1274 people follow tut2learn
    Leslie99047356 Leslie99 Lawrenc56332028 Lawrenc5 Prince_Arun Prince_A drcathys drcathys ashishpaul8 ashishpa gyogynovenyinfo gyogynov
Popup Dialog Box Powered By :
  • RSS
  • Facebook
  • Google+
  • Twitter