In cakephp 3 I tried to set cookie in my controller using write cookie method. Error got invalid key for decrypt(), key must be at least 256 bits (32 bytes) long – used following line of code. $this->Cookie->write(‘username’, ‘test’, true, ‘1 year’); I got following error after execting page. Invalid key for decrypt(), key must …
Category Archives: PHP
cakephp 3 getOriginalSubject undefined index issue fixed
I am using cakephp 3.1 for development one of my portal. While configuring email Igot undefined index getOriginalSubject in DebugkitTransport.php. I searched for some time on net for solution but I did not find any solution. This function tries to get subject from email obejct. I think this is bug in cakephp 3.1. My solution …
Continue reading “cakephp 3 getOriginalSubject undefined index issue fixed”
Get base url or development URL in cakephp 3 and use in view ctp file
Getting baseurl in any framework is easy. But development URL in cakephp 3 in view file…took time…For adding css or js or other purpose we need base path cakephp. While doing development my path was http://localhost/cakephp3/. I wanted to fetch that in my site. Their are many ways we can get the path. You can …
Continue reading “Get base url or development URL in cakephp 3 and use in view ctp file”
Solved : Channel pear is already initialized
I faced channel pear installation issue many times on many linux OS. I installed the pear package first then I removed pear package from linux box. Then when I again tried to install the pear package on box I got the following error. I solved the channel pear issue using following commands. Solved : Channel …
Continue reading “Solved : Channel pear is already initialized”
Cakephp installation and blog tutorial step by step
CakePHP is one of the best PHP MVC framework which is purely inspired by Ruby on Rails. I worked on ROR for many years. So I know CakePHP has very similar ROR standards. Here In this article I will show you about CakePHP installation on linux box in very detailed information. I created the very …
Continue reading “Cakephp installation and blog tutorial step by step”
update wordpress user password through phpmyadmin
Many PHP new developer asked my how to update wordpress user password through phpmyadmin. It is very easy trick. Many PHP sites are using Md5 encryption logic for saving the password in database.
install php mysql apache on centos 7
In this tutorial we are going to tell you how to install php mysql apache on centos 7 with very easy and simple steps and guide. LAMP is becoming more popular these day. Many people are using LAMP for server solutions. Add EPEL-7 to your linux os with latest phpMyadmin. rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm Now install …
install apache 2.4, php 5.5 and mysql on centos 6/7
In the article we will tell you to install apache 2.4, php 5.5 and mysql on centos 6/7 with this we will guide you about installing phpmyadmin and related php and mysql modules.
how to integrate wordpress into php website
PHP tutorial, how to integrate wordpress into php website. you can very easily integrate the wordpress with php or html site. Here we given code for same
Solved allowed memory size of 33554432 bytes exhausted wordpress
We solved allowed memory size of 33554432 bytes exhausted which for wordpress. Given solution for allowed memory. Change given for wordpress/wp-config.php file