News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

a question about php.ini

Started by Gandalf, November 23, 2004, 10:49:38 AM

Previous topic - Next topic

Gandalf

what's the difference between "post_max_size" & "upload_max_filesize"
in my php.ini
post_max_size = 55 MB
upload_max_filesize = 100 MB
so what's the maximum filesize that i can upload?
thanks and sorry if it's not the place to post this question
Siemens-mobiles.org Visit it and you won't regret it :D

mediman

#1
Quote from: My SX1, My Precious on November 23, 2004, 10:49:38 AM
what's the difference between "post_max_size" & "upload_max_filesize"
in my php.ini
post_max_size = 55 MB
upload_max_filesize = 100 MB
so what's the maximum filesize that i can upload?
thanks and sorry if it's not the place to post this question

post_max_size is the max size a "POST-file" can have ...
your values are btw: non sence ... upload_max_filesize must be higher then post_max_size ...
and both values are to high ...

what about memory_limit? memory_limit have to be bigger then post_max_size

btw. 10 or 20 MB are more then high enough ...

mediman
My Projects: http://ticker-oase.de 
Please do not PM me with support requests.

Gandalf

take a look to my phpinfo() ---> http://www.siemens-mobiles.org/php.php
i'm able to attach up to 30MB (the max filesize i've tried)
Siemens-mobiles.org Visit it and you won't regret it :D

mediman

okay, seems to me as memory_limit is not a problem on your server, that means you can up to 55 mb upload, coz post_max_size affected the upload_max_filesize.

mediman
My Projects: http://ticker-oase.de 
Please do not PM me with support requests.

Gandalf

so if i change the post_max_size to 100MB i can attach then up to 100MB???
Siemens-mobiles.org Visit it and you won't regret it :D

mediman

Quote from: My SX1, My Precious on November 23, 2004, 11:59:21 AM
so if i change the post_max_size to 100MB i can attach then up to 100MB???
yes, when memory_limit is not to small ...

mediman
My Projects: http://ticker-oase.de 
Please do not PM me with support requests.

Gandalf

for 100MB attachment what's the memory limit minumum VALUE
have you see my phpinfo()
Siemens-mobiles.org Visit it and you won't regret it :D

mediman

Quote from: My SX1, My Precious on November 23, 2004, 12:17:31 PM
for 100MB attachment what's the memory limit minumum VALUE
have you see my phpinfo()
let it as it is ... and you will not run in problems ...
medi
My Projects: http://ticker-oase.de 
Please do not PM me with support requests.

Gandalf

ok so to attach 100Mb
all i have to do is
post_max_size=100MB
upload_max_filesize=100MB
and everything will be fine, right?
sory if i posted a lot of questions but it must be one request to my hosting support
Siemens-mobiles.org Visit it and you won't regret it :D

mediman

Quote from: My SX1, My Precious on November 23, 2004, 01:43:36 PM
ok so to attach 100Mb
all i have to do is
post_max_size=100MB
upload_max_filesize=100MB
and everything will be fine, right?
sory if i posted a lot of questions but it must be one request to my hosting support
yes ...
the values you have actually make no sence ...

medi
My Projects: http://ticker-oase.de 
Please do not PM me with support requests.

Gandalf

Siemens-mobiles.org Visit it and you won't regret it :D

Gandalf

i have another question
if the upload_tmp_dir hasn't a value  what happens then??
for me it hasn't a value and the attachment is working
so why in the system requirement upload_tmp_dir has to a valid dir not "no value"
Siemens-mobiles.org Visit it and you won't regret it :D

mediman

Quote from: My SX1, My Precious on November 23, 2004, 03:30:58 PM
i have another question
if the upload_tmp_dir hasn't a value  what happens then??
for me it hasn't a value and the attachment is working
so why in the system requirement upload_tmp_dir has to a valid dir not "no value"
in this case it is using /tmp but not all users on a server (i.e. shared hosts) have access to this folder ... then "no value" will result in errors ...

mediman
My Projects: http://ticker-oase.de 
Please do not PM me with support requests.

Advertisement: