I need the GST related documents for searching the food rate after implementing GST. I am getting more friends in my college and business also. I have call all my friends for my home function. And all friends and my family members are go to restaurant for
Q 63 -
What is the main difference between require() and require_once()?.
require() and require_once() perform the same task except that the second function checks if the PHP script is already included or not before executing it.
(same for include_once() and include()).
Q 64 -
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.
Q 65 -
How can we connect to a MySQL database from a PHP script?.
To be able to connect to a MySQL database, we must use mysql_connect() function as follows:
Q 66 -
How can we check the value of a given variable is a number?
We can check any variable by using is_numeric() whether it is a number or not.
Q 67 -
What does the unlink() function means?
The unlink() function is used to deleting the files from server.
Q 68 -
What does the unset() function means?
The unset() function is used to unset any variable. It will make a variable undefined.
Q 69 -
How a constant is defined in a PHP script?
The define() is used to efining a constant as follows:
Example: define (“ACONSTANT”, 123);
Q 70 -
How is the ternary conditional operator used in PHP?
It is composed of three expressions: a condition, and two operands describing what instruction should be performed when the specified condition is true or false as follows:
A session allow us to preserve temporary data across multiple PHP pages.
Q 72 -
What is the difference between session_unregister() and session_unset()?
The session_unregister() function unregister a global variable from the current session and the session_unset() function free all session variables.
Q 73 -
What is the difference between $_FILES[‘userfile’][‘name’] and $_FILES[‘userfile’][‘tmp_name’]?
$_FILES[‘userfile’][‘name’] represents the original name of the file on the client machine,
$_FILES[‘userfile’][‘tmp_name’] represents the temporary filename of the file stored on the server.
Q 74 -
What is the default session time in php?
Typically the default is 24 minutes (1440 seconds).
Q 75 -
Who is the father of PHP ?
Rasmus Lerdorf is known as the father of PHP.
Q 76 -
What are the method available in form submitting?
GET and POST.
Q 77 -
How to store the uploaded file to the final location?
Q 78 -
What are the differences between Get and post methods.
There are some defference between GET and POST method
Example: <ul>
<li> GET Method have some limit like only 2Kb data able to send for request</li>
</ul>
But in POST method unlimited data can we send.
<ul>
<li> when we use GET method requested data show in url but</li>
</ul>
Not in POST method so POST method is good for send sensetive request.
Q 79 -
What is use of header() function in php ?
The header() function sends a raw HTTP header to a client.We can use herder()
function for redirection of pages. It is important to notice that header() must
be called before any actual output is seen.
Q 80 -
How can we find the number of rows in a result set using PHP?