This directive should be smaller than post_max_size (introduced in
the section following the next section) because it applies only to information passed
via the file input type and not to all information passed via the POST instance. Like
memory_limit, note that M must follow the integer value.
390 CHAPTER 15 ?– HANDL ING F ILE UPLOADS
upload_tmp_dir = string
Scope: PHP_INI_SYSTEM; Default value: NULL
Because an uploaded file must be successfully transferred to the server before
subsequent processing on that file can begin, a staging area of sorts must be designated
for such files as the location where they can be temporarily placed until they
are moved to their final location. This location is specified using the upload_tmp_dir
directive. For example, suppose you want to temporarily store uploaded files in the
/tmp/phpuploads/ directory. You would use the following:
upload_tmp_dir = "/tmp/phpuploads/"
Keep in mind that this directory must be writable by the user owning the server
process. Therefore, if user nobody owns the Apache process, user nobody should be
made either owner of the temporary upload directory or a member of the group
owning that directory. If this is not done, user nobody will be unable to write the file to
the directory, unless world write permissions are assigned to the directory.
post_max_size = integerM
Scope: PHP_INI_SYSTEM; Default value: 8M
The post_max_size directive determines the maximum allowable size, in megabytes,
of information that can be accepted via the POST method.
Pages:
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470