Increase PHP memory limit

Php tips & tricks

Sometimes you might get “Fatal error: Allowed memory size of …” PHP error. Usually this means that you run out of memory. It is recommended to double check your code and profile your app with xDebug. It should tell you which function is called how often and how much memory it eats. However, the code […]

read more

Upgrade to PHP 5.6 on Debian 7 “Wheezy”

Php tips & tricks

Official Debian packages contain PHP 5.4 at the moment. If you need higher version, you need to use 3rd-party repositories such as dotdeb. Generally it is recommended to use the official packages. However, sometimes there are reasons to use third party repositories. And this is one of them. Process of upgrade to PHP 5.6 on […]

read more

Generate Magento translation CSV file

Generate magento translation file

We know that Magento provides great feature for translation of text strings in code. Such content that needs to be localized for different store views is outputted through __()  helper function. It will search for data loaded from locale translation .csv  file and if found match for current store view it will be replaced with it…

read more

Comment php code with one keypress

Php tips & tricks

Debugging takes 90% of php developement time. You often need to comment out a piece code. In case of single line it is pretty simple. But if you need to comment large block it could take time. Do you want to comment php code with one keypress ? There is pretty simple method to achieve […]

read more