Category Archives: Best practices

Description: On a server that delivers multiple sites, I need to set up the location of a request depending on the host. For example I need to serve different text depending on the site language. Solution: The only problem here … Continue reading →

Description: In order to bring the PHP version up to date, we need to run compatibility test on our projects. Solution: The CodeSniffer tool that can be installed on each system gives us the most precise results. Follow the guide … Continue reading →

Description: In “Read more” segments, you often need to cut the text to a length and add ‘…’ at the end. This can be a bit tricky when the limit falls on a special character. Solution: We can use mb_substr() … Continue reading →

Description: Having multiple databases on the same implementation of WordPress, you need to select the proper config file before running a selected script from command line Solution: Just add a parameter that describes the correct config you need, for example … Continue reading →

Description: The “Police Virus” is a trojan or a ransomware that installs on the computer unknowingly, and on the computer power-on it blocks the computer with a rather realistic message, translated in the local language with legal items of the local country/state … Continue reading →

Description: By creating a PDF from HTML if you use tables and you want the table cells to flow easily not depending on the width of a specific cell, a long text is not broken into multiple lines, but the … Continue reading →