Page 1 of 1

upload mp3

Posted: Sun Oct 13, 2002 9:26 pm
by Grey C
I will want make a site on which upload .mp3 files.
But on hosting there is a restriction on upload (upload_max_filesize - > 2M 2M).
Therefore files of the greater size are not accepted. The access to php.ini is not present.

Whether there is an opportunity to organize upload under such circumstances?

Whether if I shall receive access to php.ini and I shall correct value variable upload_max_filesize on 10Mb I can upload files of such size?

Is in PHP absolute restriction on the size of a file at upload?

Posted: Sun Oct 13, 2002 9:33 pm
by volka
take a look at http://www.php.net/manual/en/configurat ... uote]Table 4-1. Definition of PHP_INI_* constants
...
PHP_INI_PERDIR 2 Entry can be set in .htaccess and VHost directives in httpd.conf.[/quote]and http://www.php.net/manual/en/configurat ... .php[quote]
post_max_size "8M" PHP_INI_SYSTEM|PHP_INI_PERDIR
...
Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize.
If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size
...
upload_max_filesize "2M" PHP_INI_SYSTEM|PHP_INI_PERDIR
The maximum size of an uploaded file.
[/quote]I think you can account yourself happy ;)

Posted: Sun Oct 13, 2002 10:27 pm
by Grey C
[/quote]I think you can account yourself happy ;)[/quote]

Thank you very much for help! :D