I have the following function which returns a formatted table to me showing me the list of browsers that viewed the website. It is retrieved from the MySQL Database and the User Agent (I know not totally reliable but it’s good enough for this at this point in time). However; this function (and another that does operating system from the
Tag: memory-limit
checking memory_limit in PHP
I’m need to check if memory_limit is at least 64M in my script installer. This is just part of PHP code that should work, but probably due to this “M” it’s not reading properly the value. How to fix this ? Answer Try to convert the value first (eg: 64M -> 64 * 1024 * 1024). After that, do comparison