YouTube Icon

Interview Questions.

Top 100+ Lamp Interview Questions And Answers - May 31, 2020

fluid

Top 100+ Lamp Interview Questions And Answers

Question 1. Please State How To Submit A Form Without Using A Submit Button ?

Answer :

We can submit a shape with out the usage of a submit button by way of having a JavaScript code linked to any occasion cause of a shape subject. And just upload the code report.Form.Publish() characteristic to post the shape when the event is induced.

Question 2. State The Main Difference Between Mysql_fetch_array And Mysql_fetch_object ?

Answer :

Mysql_fetch_array will fetch all the matching statistics, while mysql_fetch_object will handiest fetch the first report that fits the query.

HTML five Interview Questions
Question three. State The Main Difference Between $message And $$message ?

Answer :

$message is a call of a variable, whereas $$message is a variable with its call stored internal $message.

For instance if $message=”var”, then $$message is the same as $var

Question 4. State The Main Difference Between Require And Include, Include_once ?

Answer :

The most important distinction is that when the use of require, it will throw a deadly blunders while a record isn't always located, whereas include and include_once will display a caution and continue to load the page.

HTML five Tutorial
Question five. What Is The Difference Between The Functions Unlink And Unset?

Answer :

The Unlink() characteristic deletes the document while Unset() makes a fixed variable as undefined.

PHP Interview Questions
Question 6. How You Will Define A Session ?

Answer :

A Session is a method to save a few records to be used across a couple of pages. In technical terms it is a logical item that is saved inside the server to help you save statistics and may be accessed across multiple HTTP requests. Session is always temporary based totally at the session timeout set for your Apache Server.

Question 7. How Do You Register The Variables Into A Session ?

Answer :

To sign in variables in a consultation, you need to apply the session_register() characteristic

Ex: session_register($login_id)

PHP Tutorial Adv Java Interview Questions
Question eight. How You Will Find The Number Of Elements Present In An Array ?

Answer :

To locate the no. Of factors in an array, you can either use count() or sizeof() feature

Ex:  remember($array) or sizeof($array).

Question 9. Can You Encrypt Your Password In Php And How To Do It ?

Answer :

Yes, you can encrypt passwords and all forms of statistics in PHP the usage of md5() or sha() capabilities.

PHP and Jquery Interview Questions
Question 10. What Is A Trigger And Does Mysql Support Triggers ?

Answer :

A trigger is a database item that is associated with a selected desk in a database. It gets activated robotically and plays when both INSERT, UPDATE, DELETE motion takes place on the table.

MySQL supports triggers from MySQL five.Zero.2 version.

Adv Java Tutorial
Question eleven. State The Main Difference Between Mysql_connect And Mysql_pconnect ?

Answer :

With mysql_connect, you open a database connection on every occasion whilst the page hundreds, whereas with mysql_pconnect, connection gets established simplest once and presents get admission to to the database throughout a couple of requests.

Angular JS Interview Questions
Question 12. How To Repair A Table In Mysql ?

Answer :

To restore a table in MySQL you want to apply the following query: 

REPAIR TABLE desk name
REPAIR TABLE table call  QUICK / EXTENDED
MySQL will do a repair of handiest the index tree, If QUICK is given
MySQL will create index row by using row, If EXTENDED is given.
HTML five Interview Questions
Question 13. Is Php A Case Sensitive Programming Language ?

Answer :

It is partly case touchy, wherein we will use feature and sophistication names in case sensitive manner but variables want to be used in a case sensitive way.

PHP and Jquery Tutorial
Question 14. How Can One Handle Loops In Php ?

Answer :

In PHP, you the looping statements like while, do at the same time as, for and for each.

Question 15. Can You Execute A Php Script In Command Line ?

Answer :

Yes, we can execute a PHP script in command line with the subsequent command line argument

# php yourscript.Personal home page

Where php is the command to execute the php script in a Command Line Interface (CLI)

CakePHP Interview Questions
Question sixteen. What Is Nl2br() ?

Answer :

nl2br() function inserts HTML line breaks earlier than every newline in a string.

For instance nl2br(“How are you”) will go back strings added with HTML line breaks earlier than all new strains in a string, and the output may be like:

How
are
you

CakePHP Tutorial
Question 17. How Can We Encrypt And Decrypt A Data Present In A Mysql Table Using Mysql ?

Answer :

To encrypt facts in a mysql table, you may use the following: AES_ENCRYPT () and AES_DECRYPT ()

LightWave 3-D Interview Questions
Question 18. What Are The Types Of Errors In Php And Explain Each One Of Them ?

Answer :

The sorts of mistakes in PHP are Notices, Warnings & Fatal Errors.

Notices are much less vital errors which you don’t need to present tons importance to it. Like errors that occur, whilst you try to get admission to a variable that isn't always described. If you convert the attention mistakes to be no longer displayed, you gained’t see those varieties of errors at all.

Warnings are mistakes of a few critical nature that demand your attention. Even even though those errors are exhibited to the user, the script will not terminated. Example of this error includes accessing a file that doesn’t exist.

Fatal Errors are project crucial errors that bring about instant termination of your script. Examples of these errors consist of, calling an object of a non-existent magnificence and so on.

PHP Interview Questions
Question 19. What Is Htmlentities And What Is Their Functionality ?

Answer :

Htmlentities() simply converts the characters into HTML entities.

PHP7 Tutorial
Question 20. What Is Urlencode() And Urldecode() ?

Answer :

urlencode() converts unique characters into characters that are secure to be used in URL’s. Mostly they're transformed into % symptoms along side 2 hex digits.

For ex: urlencode(“20:00%) is transformed into “25percent2E00p.C25?”

urldecode() does the alternative and returns the decoded string..

Advanced Linux Interview Questions
Question 21. What Php Image Functions Do You Use To Get The Properties Of An Image ?

Answer :

There are diverse Hypertext Preprocessor pictures capabilities that deals with pix and you could use:

exif_imagetype() – To get the sort of the photograph
getimagesize() – To get the scale of the photograph
imagesx() – To get the width of the image
imagesy() – To get the height of the photo
Question 22. Can You Increase The Execution Time Of A Php Script ?

Answer :

Yes, we will use the max_execution_time variable to set the favored time you wished for executing a php script.

Question 23. Can You Increase The Maximum Upload Size In Php ?

Answer :

Yes, we will use the upload_max_filesize variable to trade the most length of a document you could upload.

PHP7 Interview Questions
Question 24. Please State How Can You Take A Backup Of The Whole Database In Mysql ?

Answer :

You can use the command line application to take a backup of all the mysql desk or a particular mysql table without difficulty with the subsequent:

mysqldump –-user [user_name] –-password=[password] [database_name] > [dump_file_name]

Adv Java Interview Questions
Question 25. How To Destroy A Session Variable ?

Answer :

Session_unregister() Unregister a international variable from the current session

Question 26. How Can We Unset The Variable Of A Session ?

Answer :

With the session_unset($variable_name) feature, it is easy to clear the session variable.

Object Oriented Programming in PHP Interview Questions
Question 27. How To Destroy A Cookie ?

Answer :

You simply need to set the cookie to a previous date or time.

PHP and Jquery Interview Questions
Question 28. Please Explain What Is Wrong With This Query “choose * From Table_name” ?

Answer :

You need to never select all columns of a desk unless needed and specify the columns best required in the query. The reason is that it'll use a number of memory to fetch the information, if the facts are large, when you are going to use best 2 or 3 fields from the table.

Question 29. What Is Sql Injection And How Do You Deal With That ?

Answer :

SQL injection is a technique utilized by hackers to get access into your database by way of the use of malicious SQL statements. Using this, all and sundry can advantage whole get admission to to your database with none authorization or permission.

To start with one want to use mysql_real_escape_string() to filter out the user enter facts, earlier than passing onto the sq. Statement.

Fuel PHP Interview Questions
Question 30. Please Explain The Output Of The Code Provided Below And Explain The Reasoning ?
$a = 012; Echo $a / four;

Answer :

The answer is two.5.

In PHP, each time a range of is prefixed with 0, it'll be considered as an octal range, and therefore the 012 octal number is equivalent to the decimal wide variety 10, and so 10/4 is two.5




CFG