Archive for the ‘PHP’ category

Recently, I met some unusual problem after some of hosting servers are using Suhosin. It is kinda good for PHP environment but it could cause problem without any proper configuration. For instance when you tailing /var/log/message : Jul 21 21:52:26 server suhosin[19015]: ALERT – configured POST variable limit exceeded – dropped variable ’18_EditView’ (attacker ’123.123.123.123′, [...]

Sample error, Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) Workaround Increase PHP’s memory limit, either by adding: memory_limit = 20M to your php.ini file (recommended, if you have access) ini_set(‘memory_limit’, ’20M’); in your sites settings php file php_value memory_limit 20M in your .htaccess file The memory can adjust [...]