PHP

Topic: Basic

Explain the differences between require and include, include_once.

Include () will include the file specified.

Include_once () will include the file only once even if the code of the file has been included before. 

Require () and include () are the same with respect to handling failures. However, require () results in a fatal error and does not allow the processing of the page.

Browse random answers:

What is PHP?
What is a PHP File?
Why PHP?
What is MySQL?
What is the basic syntax of Php?
What is the comment of Php??
What is the meaning of Open Source Software?
What is the difference between a static and Dynamic Web site?
How can we submit from without a submit button?
How can we get the browser properties using php?
Explain the differences between require and include, include_once.
How can we increase the execution time of a php script? 
Will comparison of string and integer work in PHP?
What does a special set of tags <?= and ?> do in PHP?
How do I find out the number of parameters passed into function?
Check password length in php
Difference between strstr and stristr in php.
How to Send Email from a PHP Script using mail() function.
PHP explode() Function
PHP implode() Function
Explain include(), include_once, require() and require_once.
Difference between echo, print and printf.
What is the difference between echo and print?
What are the advantages of MySQL and PHP?
How to find a length of a string?
How can we get second of the current time using date function?
Explain the types of string comparision function in PHP.
What do you mean range()?
What is use of header() function in php ?
How many ways we can give the output to a browser?
How many ways I can redirect a PHP page?
How to display your correct URL of the current web page?
What are the different types of errors in php?
How can I execute a PHP script using command line?
How can we encrypt the username and password using PHP?
How can we get the properties (size, type, width, height) of an image using PHP image functions?
List out the predefined classes in PHP?
what is garbage collection? default time ? refresh time?
how to track user logged out or not? when user is idle ?
how to track no of user logged in ?
what is the major php security hole? how to avoid?
what is framework? how it works? what is advantage?
What function is used to convert an array into a string?
What is meant by Exceptional Handling?
What will be the following script output?
< ?php
$a = 1;
$a = $a— + 1;
echo $a;?>

A. 2
B. 1
C. 3
D. 0
E. Null
What will be the following script output?
< ?php
$x = 3 - 5 % 3;
echo $x;?>

A. 2
B. 1
C. Null
D. True
E. 3
What is the difference between client side language and server side language, give examples?
Would you initialize your strings with single quotes or double quotes?
How is it possible to remove escape characters from a string?
 When a conditional statement is ended with an endif?
In PHP, objects are they passed by value or by reference?
What does $_SERVER means?
What does the scope of variables means?
How can we determine whether a PHP variable is an instantiated object of a certain class?
What is the goto statement useful for?
How can we determine whether a variable is set?
what is the difference between for and foreach?
What are the three classes of errors that can occur in PHP?
What is the difference between Split and Explode? 
How do you capture audio/video in PHP? 
How can I maintain the count of how many persons have hit my site?
Explain about the data types in PHP? 
Explain about switch statement in PHP? 
How To Read the Entire File into a Single String?
How To Get the Number of Characters in a String?
Describe garbage collection?
Give some example for super global arrays?
What are the Formatting and Printing Strings available in PHP?
Why we used PHP?
What is foreach loop in  php?
How we handle errors in PHP?

Explain it?
What is the difference b/n 'action' and 'target' in form tag?
What do you understand about PHP accelerator ?
What is the difference b/w isset and empty?
How many times is it possible to use an include function in a PHP page?
Can you tell me whether objects are passed by value or by reference?
What is an efficient way to combine two variables in PHP?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
When are you supposed to use endif to end the conditional statement?
Why doesn’t the following code print the newline properly?
What changes I have to do in php.ini file for file uploading?
What the Limitation of HEADER() on PHP?
What does a special set of tags do in PHP?
Consider MAX_COUNT=0 get_defined_constants() function will returns this in an output?
Which functions require an open file resource?
Which is the php config setting for enabling file uploads?
Which scope will be defined if you want variable to be available in complete script.
which engine in mysql supports full text search?.
Explain Parse Errors ? what are the most common causes of parse errors ?
What is the value of $result in the following PHP code?    <?php        function timesTwo($int) {            $int = $int * 2;            }        $int = 2;        $result = timesTwo($int);    ?>;
The code below ___________ because ____________.<?php    class Foo {    ?>    <?php           function bar() {               print "bar";           }    }?>
What will be the output of the following PHP code:    <?php        echo count(strlen("http://php.net"));    ?>