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!
Is there a function that may convert file size information like "10M" to the according size in bytes?
besides:
My uploads fail, because I do set the hidden field with a value I get via ini_get('upload_max_filesize'). ini_get returns "10M" instead of 10485760 (bytes).
I only did read all "upload" related posts on php.net. Thanks. Anyway I think php should recognize "10M" as the right size in byte itself, rather than I have to convert it. And no, I do not know if php.ini returns always "10M" because I don't know all the servers the script runs on for sure.