Differences between GET and POST methods

GET and POST are two different types of HTTP requests. GET:  GET is for retrieving data. It should have no side effects, you should be able to request the same URL over and over harmlessly. a) GET requests can be cached b) GET requests remain in the browser history c) GET requests can be bookmarked d) GET requests should never be used when dealing with sensitive data e) GET requests have length restrictions f) GET…

Read More

Difference between include() , require() , include_once(), require_once() in php

The include statement includes and evaluates the specified file. We can include a file using “include() ” or “require()” function with file path as its parameter. Files are included based on the file path given. Include() function : Include function is used to include the file in php. If the file not found, include function emit warning and continue the execution of programme. require() function : require function is used to include the file in…

Read More

How to include a file to a php page?

The include statement includes and evaluates the specified file. We can include a file using “include() ” or “require()” function with file path as its parameter. Files are included based on the file path given or, if none is given, the include_path specified. If the file isn’t found in the include_path, include will finally check in the calling script’s own directory and the current working directory before failing. The include construct will emit a warning…

Read More

What is the use of “echo” in php?

“Echo” is used to print a data in the web page. Echo is not actually a function (it is a language construct), so you are not required to use parentheses with it. echo (unlike some other language) does not behave like a function, so it cannot always be used in the context of a function. Example: The following code print the text in the web page

Read More