61⟩ Tell me what does the PHP error ‘Parse error in PHP – unexpected T_variable at line x’ means?
This is a PHP syntax error expressing that a mistake at the line x stops parsing and executing the program.
“Junior PHP Developer related Frequently Asked Questions in various Junior PHP Developer job interviews by interviewer. The set of questions here ensures that you offer a perfect answer posed to you. So get preparation for your new job hunting”
This is a PHP syntax error expressing that a mistake at the line x stops parsing and executing the program.
The define() directive lets us defining a constant as follows:
define (“ACONSTANT”, 123);
We can send 1024 bytes using GET method but POST method can transfer large amount of data and POST is the secure method than GET method.
$my_qry = mysql_query("SELECT * FROM `users` WHERE `u_id`='1'; ");
while($result = mysql_fetch_array($my_qry))
{
echo $result['First_name'.]."
";
}
The default session time in php is until closing of browser
34 is octal 34 and x34 is hex 34.
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.
☛ 1. mysql_fetch_row
☛ 2. mysql_fetch_array
☛ 3. mysql_fetch_object
☛ 4. mysql_fetch_assoc
Object orientation is a software/Web development methodology that is based on the modeling a real world system.An object is the core concept involved in the object orientation. An object is the copy of the real world entity. An object oriented model is a collection of objects and its inter-relationships
Just use the PHP CLI program with the option -a as follows:
php -a
If the function require() cannot access to the file then it ends with a fatal error. However, the include() function gives a warning and the PHP script continues to execute.
The unlink() function is dedicated for file system handling. It simply deletes the file given as entry.
:: is used to access static methods that do not require object initialization.
$_FILES[‘userfile’][‘error’] contains the error code associated with the uploaded file.
The boolean function isset determines if a variable is set and is not NULL.
The three basic classes of errors are notices (non-critical), warnings (serious errors) and fatal errors (critical errors).
Yes, it is possible by setting the cookie with a past expiration time.
!= means inequality (TRUE if $a is not equal to $b) and !== means non-identity (TRUE if $a is not identical to $b).
Sessions automatically ends when the PHP script finishs executing, but can be manually ended using the session_write_close().
This feature is possible using the global keyword.