Many to many relations are one of the mostly used relations in the relational database. It took a while for me to figure how to properly configure this relation in Symfony Doctrine. I am sharing this so it might be useful for someone. Used very simple example students and course. A student can opt for… Continue reading Symfony Doctrine Many to Many Relationship (ManyToMany)
The current version of PHP which is 5.6 has reached the end of life on 19th Jan 2017. PHP team has stopped support for 5.6, and no more new features added. Security support for 5.6 is up to Jan 2019. On Jan 2019 PHP 5.6 officially dead. The newer version of Linux and server software… Continue reading Why do we need to upgrade PHP 5.6 to PHP 7.2?
To Install PHP 5.6 on Ubuntu just follow the command one by one bellow. apt-get update apt-get install software-properties-common add-apt-repository ppa:ondrej/php apt-key del 4F4EA0AAE5267A6C apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 4F4EA0AAE5267A6C apt-get install apache2 php5.6 php5.6-cgi php5.6-curl php5.6-gd php5.6-intl php5.6-mysql php5.6-json php5.6-bz2 php5.6-mcrypt php5.6-xmlrpc php5.6-xsl php5.6-bcmath php5.6-mbstring php5.6-soap php5.6-xml php5.6-zip service apache2 restart
During development we always come across situation where you need to add custom routes based on some settings based from the user. In this case we cannot use any of the standard methods like annotation and configuration files in symfony. In this case you need to use a services and hooks to inject your custom… Continue reading Symfony: Adding custom route by code during runtime
This is one of major issue lot of web masters face now. As PHP 5.2 has reached end of life we are forced to seek options to migrate and test PHP applications in PHP 5.2 and 5.3. Raj COO from WebHostRepo.com has posted a nice blog post on how to achieve this. Running PHP 5.3… Continue reading WHM / cPanel – Compile PHP 5.3 to work with PHP 5.2