We can increase the execution time using set_time_limit(int) in php.ini file.
Default is 30 sec. 0 is unlimited
How can we take a backup of a mysql table and how can we restore it?
BACKUP TABLE tbl_name[,tbl_nam..] TO ‘/path/to/backup/directory’
RESTORE TABLE tbl_name[,tbl_name] FROM ‘/path/to/backup/directory’
How can we optimize or increase the speed of a mysql select query?
We will give first preference for non complex query
We will give second preference for complex query
How many ways can we get the value of current session id?How many ways can we get the value of current session id?
session_id();
How can we destroy the session, how can we unset the variable of a session?
session_unregister - Unregister a global variable from the current session
session_unset - Free all session variables
How can we destroy the cookies?
Set past time
Set cookie(‘username’,’sankar’, time()-60);
How many ways we can pass the variable through the navigation between the pages?
3 ways,
GET, POST, REQUEST
What are the different types of errors in PHP?
Basically 3 types of errors
i. Notices - These are non critical error
ii. Warning – These are more serious error
iii. Fatal error – These are more critical error
What is the functionality of the function strstr and stristr?
strstr – It returns part of the string from first occurrence of the string. It is case sensitive search. stristr – It is also returns part of the string from first occurrence of the string. But it is case insensitive search.