By default the maximum size is 2MB.
can change the size
setup at php.ini
upload_max_filesize = 12M
Related Posts:
THE DIFFERENT TYPES OF ERRORS IN PHP?
1. Notices: These are trivial, non-critical errors that PHP
encounters while executing a script – for example, accessing a variable
that has not yet been defined
2. Warnings: These are more serious errors – for example, a… Read More
$_GET , $_POST,$_COOKIE??
$_GET contains any variables provided to a script through the GET method.
$_POST contains any variables provided to a script through the POST method.
$_COOKIE contains any variables provided to a script through a… Read More
What are the MySQL database files stored in system ?
Data is stored in name.myd
Table structure is stored in name.frm
Index is stored in name.myi
… Read More
Web server compression?
The best way to understand web server compression is to think of sending ZIP filesinstead of uncompressed files from your web server to your web user. Sending less dataover the network will minimize network latency and your … Read More
How can we get second of the current time using date function?
$second = date("s");
… Read More
What Is a Session?
It is stored at server side because PHP is server side scripting language
Session is stored on server side
because how much time page will execute it doesn't depend on client it
depends on server. Server decide the sess… Read More
$_ENV and $_SERVER ?
PHP sets several variables for you containing information about the server, the
environment, and your visitor's request. These are stored in the superglobal
arrays $_ENV and $_SERVER, but their availability depends on
whe… Read More
What line should you add to the Apache configuration file to ensure that the .php extension is recognized?
This line ensures that Apache will treat files ending with the .php extension asPHP scripts:AddType application/x-httpd-php .php
… Read More
What is triggers?
A trigger is a database object which is associated with particular
database table.
Triggers gets called automatically when particular
event(INSERT, UPDATE, DELETE)
occurs on table.
… Read More
What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
mysql_fetch_array() -> Fetch a result row as a combination of
associative array and regular array.
mysql_fetch_object() -> Fetch a result row as an object.
mysql_fetch_row() -> Fetch a result set as a regular array… Read More
What function can be used to encode passwords for storage in the database
The md5() function creates a one-way encoding of the
password.
… Read More
What Is a Persistent Cookie?
A persistent cookie is a cookie which is stored in a cookie file
permanently on the browser's computer. By default, cookies are created
as temporary cookies which stored only in the browser's memory. When the
browser is c… Read More
How to prevent hijacking in PHP?
Make Error_reporting to E_ALL so that all variables will be intialized before using them. Make practice of using htmlentities(), strip_tags(), utf8_decode() and addslashes() for filtering malicious data in php&nb… Read More
What is the use of PEAR in php?
PEAR is known as PHP Extension and Application Repository. It provides
structured library to the PHP users and also gives provision for package
maintenance.
… Read More
magic_quotes_gpc, magic_quotes_runtime
Magic quotes is the name of a PHP feature that automatically quotes inputdata, by using the addslashes() function. Historically, this was used so thatform data could be used directly in SQL queries without any security or qu… Read More