PHP is always evolving, and it’s important to stay up-to-date with the latest features and improvements. This article introduces 20 PHP features you should know as of 2023, each illustrated with a handy code example. 1. str_contains(): Checks if a string is contained in another string. $sentence = “The quick brown 🦊 jumps over the […]
Author: admin
Setting up MySQL replication without the downtime
This is just a copy from the origin article https://plusbryan.com/mysql-replication-without-downtime Setting up MySQL replication without the downtime I clearly don’t need to expound on the benefits of master-slave replication for your MySQL database. It’s simply a good idea; one nicety I looked forward to was the ability to run backups from the slave without impacting the […]
Resume a large scp transfer
Today I was tyring to transfer a huge file over a ssh connection (scp). Everything was working fine, but at 94% the connection stalled and the transfer has been interrupted. $#!”&%, I thought, but luckily yyab helped me a lot! If you need to resume an scp transfer, try with rsync: rsync –partial –progress –rsh=ssh […]
Ways of rendering your form in Zf2
Form collection will render all your elements, including error notification. It will render the label, input field and error notification. Very useful for custom display of your form but you need to do it 1 by 1 for each form element.
Envoi d’un email HTML avec du texte comme corps alternatif
Envoi d’un email HTML avec du texte comme corps alternatif :