mCrypt is one of the best and most popular Cryptography Extensions in PHP5. To install it with your PHP5 in your NGinx server for Ubuntu 14.04 please install it with following command sudo apt-get install php5-mcrypt and then restart your NGinx server with sudo service nginx restart. But sometimes it may fails to load your mCrypt extension with your PHP5. If you face those types of problem just execute the following command in your Ubuntu 14.04 command line and restart …
Category: Programming
Read articles, tips & tutorials, news and updates on programming language. I write on mostly all languages and try to share my experience with you so you don’t need to spent too much time to find the solution by yourself. Sharing is the true power of knowledge.
I searched about custom imap datasource for cakephp all over the internet. I got few things but those are for CakePHP 1.x version that is too old. That’s why I tweaked few things to make it work for CakePHP 2.x version. Here is my modified and upgraded custom IMAP datasource for your cakephp application. CakePHP IMAP Custom Datasource Custom datasource for CakePHP (2.x) to interact with your mail server with IMAP functionality. Go to GitHub repo where I put my …
To change the bower’s component installation directory as you want you first need to create a .bowerrc file and define the custom location in this .bowerrc like the below. { "directory": "yourCustomDirectoryLocation" } Then as usual just make a bower.json file where you will write down all the dependencies for your projects like the below. { "name": "YourProjectName", "description": "Description of your project", "homepage": "http://yourProjectUrl.com/", "author": "Yourname <your@email.com>", "dependencies": { "bootstrap":">= 3.0.0", "jquery": "~2.0.3" } } now run bower install …
To avoid misspelled user typing of address for searching places or anything by Google map, you can place only address suggestion dropdown provided by Google places API. It’s so easy to integrate. Just add the following Javascript code before </head> tag. <script src="https://maps.googleapis.com/maps/api/js?sensor=true&libraries=places"></script> Now let’s assume your input field/ address field code in your form is- <input type="text" class="form-control" id="locationInput" placeholder="write your address"> Now put the following javascript code after adding the google api javascript file source. <script> (function(){ var …
It’s not so easy to write Test Cases for slim framework. But I tried by autoloading SlimEnvironment class by requiring applications global autoload script. And after that I just created a Slim mock environment to handle the test case environment. If you have any further idea about to please share with me. Thanks in advance!