Category: PHP

Transparent Circular Crop using PHP GD

The GD library is a graphics drawing library that provides tools for manipulating image data. We can perform various operations and manipulations with image using this powerful library.

In this article, I will show how to crop an image to transparent circular image using PHP GD Library.

Bulk Insert Update into MySQL using PHP

Sometimes we need to insert large data set into database table. Using one INSERT statement per row is quite inefficient. Instead of this, we can assemble one INSERT statement with multiple rows.

In this article, I am going to show how to perform bulk insert into MySQL table using PHP.

Search YouTube videos using YouTube API 3.0

In this post, I’ll share how to search YouTube videos by using YouTube Data API v3 and PHP. I’ll show how to search videos by type (video, channel, playlist), keywords and other search terms. In addition to this, I’ll show how to order the result by various parameters.

After reading this article, you can make search queries like getting list of videos from specific channel. Also you can filter videos by keywords and other parameters.

Number Translation using PHP & JavaScript

Are you having problem with translating numbers to their equivalent signs in different languages? Don’t worry! This post helps you in number translation.

As an example, let’s convert English numbers to Devanagari equivalent and vice versa using PHP & JavaScript.

Sending email using Gmail and Amazon SES SMTP Servers via PHPMailer

The ability to send email is one of the most desired and sometimes essential features for any modern Web Applications. From sending email for ‘Email Verification’ to sending Notifications, Invoices or Newsletter, it has so many usages.

I will discuss how to send email using PHP mail() function, its limitations and how to use PHPMailer to overcome these issues in this article. Moreover, I will also show how to send email using Gmail and Amazon SES SMTP Servers via PHPMailer.

Page Caching to Improve Website Performance

A web cache is an approach for the temporary storage (caching) of web documents, such as HTML pages and images, to reduce bandwidth usage and server load. The content of a webpage can be stored in a file temporarily so that every time server receives a request, it doesn’t need to process time and again. This is termed as Page Caching.

In this article, we will be going through a simple approach for achieving Page Caching.

Implement Facebook Instant Articles using PHP SDK

Facebook Instant Article is immensely popular these days. With Instant articles, publisher can create fast, interactive articles on Facebook. In addition to this, Instant Article is a great way to monetize article.

Problem with RSS feed is it takes time to load new articles as it depends on FB end solely to fetch new articles from RSS. Sometimes, it may take long time to fetch which results in loss of revenue.

In this article, we came up with integrating Facebook Instant Articles using PHP SDK.

Image Steganography: Hiding text in images using PHP

Steganography is the art and science of writing hidden message in such a way that no one, apart from the sender and intended recipient, suspects the existence of the message.

In this article, we are implementing Image Steganography using PHP by masking Least Significant Bit (LSB) of RGB value of image pixels.