[PHP] uploaded fiel size limitiation
Hi, I have a little script that was working fine when uploaded files up tp 16MB. I moved to other hosting company and use the same form/script. Not, I can't upload eitherr 2MB file. Where to look for limitation first? According to phpinfo() post_max_size in php.ini is 8M. Thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] uploaded fiel size limitiation
[EMAIL PROTECTED] wrote: Hi, I have a little script that was working fine when uploaded files up tp 16MB. I moved to other hosting company and use the same form/script. Not, I can't upload eitherr 2MB file. Where to look for limitation first? According to phpinfo() post_max_size in php.ini is 8M. memory_limit, post_max_size and upload_max_filesize. the third one is biting you AFAICT. note that upload_max_filesize should be set somewhat smaller than post_max_size because a file upload forms *part* of the total data posted. (someone please correct me if I've been living under an incorrect assumption) Thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] uploaded fiel size limitiation
[EMAIL PROTECTED] wrote: Hi, I have a little script that was working fine when uploaded files up tp 16MB. I moved to other hosting company and use the same form/script. Not, I can't upload eitherr 2MB file. Where to look for limitation first? According to phpinfo() post_max_size in php.ini is 8M. as an aside - do yourself a favour. grab a copy of the default php.ini (whatever it's called these days) and read it top to bottom. It will take you a little while but I'm sure you will, by the end of it, have learned about some previously unknown ini settings and probably picked up quite a bit of useful info from the extensive comments that it contains. it can't hurt right? Thanks. -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] uploaded fiel size limitiation
[EMAIL PROTECTED] wrote: Hi, I have a little script that was working fine when uploaded files up tp 16MB. I moved to other hosting company and use the same form/script. Not, I can't upload eitherr 2MB file. If you can't upload *any* files check that the upload_tmp_dir is set and see if that's writable by php (see php.net/is_writable). -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php