Hi,

I've been reading documentation on configuration functions for a while now and I have a remark, which actually is a question at the same time. After reading the rules on notes, I thought it was better to send you an email, instead of asking this in a note...

There is this piece of text about ini_get() at http://www.php.net/manual/en/function.ini-get.php :
"When querying memory size values: Many ini memory size values, such as upload_max_filesize are stored in the php.ini file in shorthand notation. ini_get() will return the exact string stored in the php.ini file, NOT its integer equivalent. Attempting normal arithmetic functions on these values will not have otherwise expected results."


Unfortunately, it doesn't say what you can do to go from this shorthand notation to and integer equivalent. I would expect a function for that. After all, PHP will somehow have to do this internally as well. I couldn't find such function on any of my search keys. Could you maybe be clearer about this notation and, if it exists, refer to a function or, in case it doesn't exist, state that there is currently no easy way to do this conversion.

If there is a function like this, I would really like to know. Ofcourse I could write my own function for it, but then it would be handy to know what you can expect in this shorthand notation. Now I can find several values like "2M" or "8M". I could imagine that in some cases there could be a "K" instead (for example "512K", or maybe "1G". Maybe even others. Who can tell?

And are these M's megabytes? (1048576 bytes) or millions of bytes?
I'm really missing such information at this point.

I hope this can help you to improve the documentation and hopefully provide me answers to my questions or maybe redirect me to the correct place for that. Thanks in advance.

Best regards,

Bernold Geurts
The Netherlands

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to