Documente Academic
Documente Profesional
Documente Cultură
POST method has 8 Mb max size, by default (can be changed by setting the post_max_size in the php.ini
file).
c
The PHP built-in $_REQUEST function contains the contents of both $_GET, $_POST, and $_COOKIE.
The $_REQUEST function can be used to collect form data sent with both the GET and POST methods.
For example:
<script>
function formsubmit()
{
document.form.action="Page Name here you want to go that
page";
document.form.submit();
}
</script>
<form name="form" method="post">
<a href="#" onclick="formsubmit();">Click here</a>
</form>
%
&%'($
()
"*++" ",
,
+
$+
" "+-+
&,
1. Cookies are stored in the user's browser, and sessions are not.
2. A cookie can keep information in the user's browser until deleted. In sessions, when you close
your browser you also lose the session.
3. Cookies can only store strings. We can store our objects in sessions. Storing objects in sessions
were really useful according to my experience.
c $.-
/$.-
.
MySQL fetch object will collect first single matching record where mysql_fetch_array will collect all
matching records from the table in an array.
c $$
They are both variables. But $message is a variable with a fixed name. $$message is a variable who's
name is stored in $message. For example, if $message contains "var", $$message is the same as $var.
c $- 0-
$
$0
$
They differ in how they handle error
include() generates a warning, but the script will continue execution
require() generates a fatal error, and the script will stop
File will not be included more than once. If we want to include a file once only and further calling of the
file will be ignored then we have to use the PHP function include_once(). This will prevent problems with
function redefinitions, variable value reassignments, etc.