How to integrate Sendgrid with Zend framework

March 18, 2019 Iyngaran Iyathurai 0

Install send-grid transport using the following command. After install follow one of these steps: Copy the contents file vendor/iyngaran/send-grid-transport/ and put it in your config/autoload/ If this file does not exists in your application, just copy the entire file and place into your config/autoload removing the .dist extension. Then add your SendGrid API Key. To get your API Key, please visit And also add the test email from-email address, name and to-email address, name. After all, you must register SendGridTransport module in your config/modules.config.php. […]

Configure PHP Remote Debugging in Vagrant box with Xdebug and PhpStorm

July 8, 2017 Iyngaran Iyathurai 0

Note: This article concerns PHP 7.0,PhpStorm 2017.2 (EAP) and Vagrant box bento/centos-7.2. Step1: Install Xdebug on your Vagrant virtual machine You need to have Xdebug installed on your virtual machine to benefit from its services.

Then, we need configure it: We need enable the remote debug and add IDEKEY on XDEBUG. To do that, we need modify the php-xdebug configuration file (xdebug.ini). Lets modify the php-xdebug configuration file

And the following lines at […]

UTF8 Problem, incorrect display of special characters… (é, É, å, ä, ö etc.)

May 4, 2014 Iyngaran Iyathurai 0

Are you still facing problem, when display the special characters…(£,é, É, å, ä, ö etc.) ? Here is the solution to fix the issue. Firstly, make sure that your database table is set to character set UTF-8. So you must create the database, with UTF-8 encoding. Create a new database, with UTF-8 encoding

Or If you have created the database already, you need to convert it to UTF-8 encoding First, backup! and alter the […]

How to check if an email address exists without sending an email?

October 29, 2013 Iyngaran Iyathurai 4

We have all been doing email address validation for a very long time to make sure that the email is correctly formatted. This is to avoid users entering wrongly formatted email address but still they can accidentally give us a wrong email address. Example of a correctly formatted email address but still wrong:[VALID format but does not exist] So is there a QUICK solution to really check the email without sending a test message […]

How to enable PHP error logging via .htaccess

October 10, 2011 Iyngaran Iyathurai 0

Tracking PHP errors is a must when troubleshooting unexpected issues, related to plugins, themes. But you don’t want to have them visible on your site, especially not your customers. Here is a tutorial how to log all PHP errors behind the scenes to a private file. Tracking your site’s PHP errors is an excellent way to manage and troubleshoot unexpected issues related to plugins and themes. Even better, monitoring PHP errors behind the scenes via […]

Generate Constructor, Getters and Setters in NetBeans PHP IDE

October 1, 2010 Iyngaran Iyathurai 0

This morning I have committed a feature to the NetBeans PHP support that will be part of NetBeans IDE 6.5, which offers generating of constructor, getters and setters in a PHP class. To invoke the functionality, the caret position has to be inside a PHP class and you have to press shortcut ALT+Insert (CTLRL+I on Mac). After invoking the shortcut, all possible generators are offered. Let’s explain on a simple example. I have very simple […]

How to add ‘Facebook LIKE’ button to website content

September 22, 2010 Iyngaran Iyathurai 0

Facebook introduced more social interactions with their new “Like” or “Recommend” Button. This Facebook button enables the user to interact with a site or page. Additionally share it with his/her friends at their own Facebook profile. Well, Facebook does made it pretty easy to Implement the “Like” button code on your site. The complexity comes when it is not a single page website. How about a blog Post? This is where you will need this […]

PHP Application Development With ADODB

April 23, 2010 Iyngaran Iyathurai 0

ADODB is a powerful databaseabstraction library for PHP applications. As a developer, one of the most important things to consider when developing a Web application is portability. Given the rapid pace of change in the Web world, it doesn’t do to bind your code too tightly to a specific operating system, RDBMS or programming language; if you do, you’ll find yourself reinventing the wheel every time things change on you (and they will – take my word for it).