Join Our Email Alerts-Subscribe
Important Note:Login & Check Your Email Inbox and Activate Confirmation Link

Enter Your Email :

Copyright Disclaimer:
Section 107 of the Copyright Act Fair Use Contents .
We are forwarding content link(s) from our website to content website & We are not serving any contents.
Main the Content PDF link(s) is/are obtained from GoogleSearch
for the purpose of Education & Teaching Intention. Not for commercial purpose. is not liable/responsible for any copyright issues.

PHP Materials-Free Download

74) How can we get the error when there is a problem to upload a file? 

$_FILES['userfile']['error'] contains the error code associated with the uploaded file. 

75) How can we change the maximum size of the files to be uploaded? 

We can change the maximum size of files to be uploaded by changing upload_max_filesize in php.ini. 

76) What does $_ENV mean? 

$_ENV is an associative array of variables sent to the current PHP script via the environment method. 

77) What does $_COOKIE mean? 

$_COOKIE is an associative array of variables sent to the current PHP script using the HTTP Cookies. 

78) What does the scope of variables mean? 

The scope of a variable is the context within which it is defined. For the most part, all PHP variables only have a single scope. This single scope spans included and required files as well. 

79) what the difference between the 'BITWISE AND' operator and the 'LOGICAL AND' operator? 

$a and $b: TRUE if both $a and $b are TRUE. 

$a & $b: Bits that are set in both $a and $b are set. 

80) What are the two main string operators? 

The first is the concatenation operator ('.'), which returns the concatenation of its right and left arguments. The second is ('.='), which appends the argument on the right to the argument on the left. 

81) What does the array operator '===' means? 

$a === $b TRUE if $a and $b have the same key/value pairs in the same order and of the same types. 

82) What is the differences between $a != $b and $a !== $b? 

!= means inequality (TRUE if $a is not equal to $b) and !== means non-identity (TRUE if $a is not identical to $b). 

83) How can we determine whether a PHP variable is an instantiated object of a certain class? 

To be able to verify whether a PHP variable is an instantiated object of a certain class we use instanceof. 

84) What is the goto statement useful for? 

The goto statement can be placed to enable jumping inside the PHP program. The target is pointed by a label followed by a colon, and the instruction is specified as a goto statement followed by the desired target label. 

85) what is the difference between Exception::getMessage and Exception:: getLine? 

Exception::getMessage lets us getting the Exception message and Exception::getLine lets us getting the line in which the exception occurred. 

86) What does the expression Exception::__toString means? 

Exception::__toString gives the String representation of the exception. 

87) How is it possible to parse a configuration file? 

The function parse_ini_file() enables us to load in the ini file specified in filename and returns the settings in it in an associative array. 

88) How can we determine whether a variable is set? 

The boolean function isset determines if a variable is set and is not NULL. 

89) What is the difference between the functions strstr() and stristr()? 

The string function strstr(string allString, string occ) returns part of allString from the first occurrence of occ to the end of allString. This function is case-sensitive. stristr() is identical to strstr() except that it is case insensitive. 

90) what is the difference between for and foreach? 

for is expressed as follows: 

for (expr1; expr2; expr3) 


The first expression is executed once at the beginning. In each iteration, expr2 is evaluated. If it is TRUE, the loop continues, and the statements inside for are executed. If it evaluates to FALSE, the execution of the loop ends. expr3 is tested at the end of each iteration. 

However, foreach provides an easy way to iterate over arrays, and it is only used with arrays and objects. 

91) Is it possible to submit a form with a dedicated button? 

It is possible to use the document.form.submit() function to submit the form. For example:  

92) What is the difference between ereg_replace() and eregi_replace()? 

The function eregi_replace() is identical to the function ereg_replace() except that it ignores case distinction when matching alphabetic characters. 

93) Is it possible to protect special characters in a query string? 

Yes, we use the urlencode() function to be able to protect special characters. 

94) What are the three classes of errors that can occur in PHP? 

The three basic classes of errors are notices (non-critical), warnings (serious errors) and fatal errors (critical errors). 

95) What is the difference between characters \034 and \x34? 

\034 is octal 34 and \x34 is hex 34. 

96) How can we pass the variable through the navigation between the pages? 

It is possible to pass the variables between the PHP pages using sessions, cookies or hidden form fields. 

97) Is it possible to extend the execution time of a PHP script? 

The use of the set_time_limit(int seconds) enables us to extend the execution time of a PHP script. The default limit is 30 seconds.

98) Is it possible to destroy a cookie? 

Yes, it is possible by setting the cookie with a past expiration time. 

99) What is the default session time in PHP? 

The default session time in php is until the closing of the browser 

100) Is it possible to use COM component in PHP? 

Yes, it's possible to integrate (Distributed) Component Object Model components ((D)COM) in PHP scripts which is provided as a framework.

Source: Contents are provided by Technicalsymposium Google Group Members. 
Disclaimer: All the above contents are provided by Google Group members. 
Further, this content is not intended to be used for commercial purpose. is not liable/responsible for any copyright issues.

Download Technical Interview Materials PDF-Free Download

Technical Interview Questions and Answers Notes PDF
Placement Materials PDF-Free Download Study Materials PDF-Free Download Live Support-Chat with Our Experts

Official Contact: +91-9245556793 (Whatsapp Message / SMS / Voice Call)

Our Expert team is ready to answer all your questions immediately-Feel free to speak in Tamil/English.

(Example:Events info/Lecture Notes/Off-Campus & All Jobs/Projects & All education information)

Working hrs (IST): (Morning: 10:00AM-3:00 PM) and (Evening:5:00 PM to 10:00 PM)

All Latest Question & Answer Page (FAQ)-Click here