upload mp3

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Grey C
Forum Newbie
Posts: 2
Joined: Sun Oct 13, 2002 9:26 pm
Location: Moldova
Contact:

upload mp3

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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 ;)
Grey C
Forum Newbie
Posts: 2
Joined: Sun Oct 13, 2002 9:26 pm
Location: Moldova
Contact:

Post by Grey C »

[/quote]I think you can account yourself happy ;)[/quote]

Thank you very much for help! :D
Post Reply