Category: PHP

0

Flip image with PHP and GD

PHP provides GD library which is very useful for image manipulation. We can easily resize, rotate and flips images using various functions of GD library. In this tutorial, we will learn how to flip...

0

CakePHP: How to create a helper

What is helper? Helper is a simple class file similar to Components. Helper is used in view files for presentation. We can use helper in view files, elements or layouts of our application. There...

0

CakePHP: Custom validation rule in model

Data validation is very important part of any application. CakePHP has its own validation rules to validate data like alphaNumeric, email, numeric. Let’s start with simple example using inbuilt validation rules. As you know,...

1

CakePHP: How to create a component

What is a component? Component is a simple class file which contains the common code or logic. Component can be shared between our application’s controllers. CakePHP comes with some good components, so you can...

0

Resize image with PHP and GD

Image processing is now easy in PHP by using GD library. We can easily resize image, rotate, crop and flip. In this tutorial, we will learn how to resize an image with fixed width...