PDA

View Full Version : php.ini file using bytes not MB


hornstar6969
Sun 23rd Apr '06, 7:53am
When I set things in php.ini for example

memory_limit = 8M

In admincp its showing that as - PHP Memory Limit 8 Bytes

Same with the lot

PHP Max Post Size 8 Bytes
PHP Maximum Upload Size 8 Bytes etc

I changed it to 8388608M Which should be 8MB in bytes, but the server wouldnt load so I guess that was incorrect.

How do I change it from bytes to MB or what should I have

PHP Max Post Size, PHP Maximum Upload, memory_limit set to?


Edit I fixed it :)

I changed it to 8388600M I guess 8MB is max and i went over by a couple of bytes thanks to the online conversion tool i used lol


but while i have this thread here, what are good values to set

PHP Max Post Size, PHP Maximum Upload, memory_limit?

Thanks

eva2000
Sun 23rd Apr '06, 11:00am
weird what version of php and you got a phpinfo.php url link ?

ideally 16M is enough for most forums

hornstar6969
Sun 23rd Apr '06, 5:21pm
phpinfo is here https://gamerzneeds.net/pi.php

Scott MacVicar
Sun 23rd Apr '06, 5:35pm
The phpinfo says 8388600M for memory limit, that means 8388608 MegaByte, you need to remove the M at the end.

eva2000
Mon 24th Apr '06, 7:59am
ouch 800M for memory limit, you should just use 16M for memory_limit in php.ini

hornstar6969
Tue 25th Apr '06, 1:02am
Yeah but why does it say bytes and not MB in admincp?

eva2000
Wed 26th Apr '06, 10:50am
Probably an admincp issue or typo .. go by what phpinfo.php says for memory_limit

what vB version you're using ?