Browsing Category

php

104

Php code for image upload function

Image upload function performs the task of image uploading, cropping, setting image size according to aspect ratio etc. This PHP code provides the fully functional image upload utility. Here is the code -…

Php code to redirect invalid user

Redirecting invalid user is necessary because different pages of the website have different authority. Some pages should only be accessed by admin. If some invalid user tries to open them, then they should be redirected to another page.…

5 BEST PHP FRAMEWORK TO LEARN IN 2017

let’s highlight 5 Best PHP frameworks to learn in the year 2017 and take a bird’s eye view of how each one of them can ease your PHP app development. Need Of PHP frameworks Of all the server-side programming languages, PHP undoubtedly…

What Is an Abstract Factory Pattern?

The Abstract Factory pattern is a creative way to expand on the basic Factory pattern. Since the Factory pattern is a class that creates other classes in a uniform way, the Abstract Factory pattern gives us a way to allow factories with…

Using Swiftmailer in symfony

Symfony2 provides a default mailer component called swiftmailer. Its default configuration looks like this: # app/config/config.yml # ... # Swiftmailer Configuration swiftmailer: transport: "%mailer_transport%"…

what are Fixtures symfony ?

After creating the database structure, it would be handy to prepare some test data. We can do this through fixtures. Unfortunately, Symfony2 does not come with any fixtures system, so we need to install it. Type the following: $ php…

Learn how to use AJAX in yii framework

this tutorial is part of reservation series Yii2 provides appropriate attributes for some widgets to make AJAX calls; sometimes, however, writing a JavaScript code in these attributes will make code hard to read, especially if we are…

Pin It on Pinterest