I'm using PHP MySQLi Database Class and on my local computer everything works without any problem. However, when I upload my project to my host I get the following error:
Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 50331646 bytes) in /usr/home/data/site/public_html/classes/MysqliDb.php on line 678
Line 678 from MysqliDB.php
contains the following command:
call_user_func_array(array($stmt, 'bind_result')`, $parameters);
When I type php_value memory_limit 64M
in .htaccess
file I get this error:
[Fri May 30 11:03:18 2014] [alert] [client 37.98.159.18] /usr/home/data/site/public_html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration, referer: http://example.org/index.php