المشاركات

عرض المشاركات من يناير, ٢٠١٨

How to Resize Image and Create Thumbnail in CodeIgniter

صورة
Hi! Today we will see how to resize image and create thumbnail in codeigniter . This comes handy when you want to resize user avatar or profile images. Generally, shopping sites employ this method. Although they upload large product images, they'll create a thumbnail version of them and lists them in several categories. This will not only save bandwidth but load the page faster and listing more items in a limited space. We are going to see how to do this in codeigniter. CI offers a very useful image manipulation class called image_lib which we are going to use for resizing the image. Using this library you can not only change the size but perform crop, rotate and watermark images. It is compatible with all major image libraries like GD/GD2, ImageMagick and NetPBM and we will use GD2 here. CodeIgniter - Image Resizing and Creating Thumbnail Image: Let's build a CI demo to implement image resizing and the process goes like this. The user uploads images using the upload for

How to Export MySQL Table to JSON File in CodeIgniter

صورة
Hi! In this tutorial, we will see how to export mysql table to json file in codeigniter . Data portability has become more important than ever and a necessary requirement for modern applications. Almost all web services uses JSON format to migrate data from one location to another. So, as a Web Developer, you must know to handle json and various types of applications like Web, Mobile etc. Exporting mysql into json allows you to easily port data to different platforms. The whole process is quite simple. Just fetch the data from mysql database, covert the query result to json and then write it in a file. CodeIgniter - Export MySQL Table to JSON File: Let's create a demo for exporting the database as json. The steps are easy to follow and we possibly need two files, a model and a controller. Step-1) Create Database We need a dummy database to use in the example, a database, a table and some sample records. Run the below sql file in the mysql environment and create them.

Paytm Payment Gateway Integration in PHP - Example

صورة
Hi! In this tutorial, we will see how to integrate paytm payment gateway in php . Mobile wallets have become immensely popular in recent years and paytm is highly trusted among online customers. Many people use it every day for doing online recharges, DTH & other bill payments. It reduces the risk of exposing customer's banking credentials and credit card details to hackers. Therefore, Paytm is a good solution for online payments on your Website and Mobile Apps. Integrating the paytm gateway in your application is quite easy and below I'll show how to do it with php. Paytm Payment Gateway PHP Integration: If your application is based on php, then you don't have to go from scratch. You can quickly integrate paytm into the application using the paytm kit for php . It covers all the basics, you just have to download and use it in the following way. Step-1) Download Paytm Kit Download Paytm Payment Kit for PHP and extract its contents. Then move the 'Payt

PHP CodeIgniter Tutorials for Beginners Step By Step: Learn From Scratch

صورة
Hi, Welcome to our PHP CodeIgniter Tutorial Series. These step by step tutorials are intended for beginners who want to start learning php codeigniter from scratch. It will start right away from setting up the codeigniter framework working environment and move on to more advanced topics covering codeigniter framework libraries, helpers and active record class for database communication. Another nice perk with this series is you will get to know about the popular twitter bootstrap css framework while learning. Why You Should Learn CodeIgniter Framework? CodeIgniter Framework is developed by EllisLab and now it is taken by British Columbia Institute of Technology. It is the simplest and light-weight PHP framework which lets you create robust web applications in no time. It is greatly appreciated for its speedy performance and smaller learning curve and suitable for highly scalable applications. And even though php codeigniter framework loosely follows Model-View-Controller pat

Best Kali Linux Compatible Wireless Adapters/Dongles 2020

صورة
Here are the best kali linux compatible wireless adapters and usb dongles for 2020 . Kali Linux is a Linux distribution mainly used for Penetration Testing, accessing N/W Security & Ethical Hacking. The process of choosing a wireless adapter or usb dongle to work with Kali Linux is not an easy task. It's just because the Operating system doesn't support all kinds of wifi adapters. For example Pentesting requires a card to go into monitor mode and do packet injection which all cards can't do it. The Card's chipset and drivers is what determines if an adapter is compatible with kali or not. Below I have listed out the most popular chipsets for Kali linux and Wireless adapters compatible with them. They work well for Penetration testing too. Popular Kali Linux Compatible Chipsets: Atheros AR9271 Ralink RT3070 Ralink RT3572 Best Kali Linux Compatible Wireless Adapters: 1. Alfa AWUS036NHA (Atheros AR9271 Chipset Compatible) Check Price @ Amazon Alfa AW

CodeIgniter | Remove index.php from URL using htaccess

صورة
Hi, we’ll see how to remove index.php from url in codeigniter . Even though codeigniter uses search engine friendly urls, nobody would have missed the awkward presence of 'index.php' in between those codeigniter's urls. Have you ever wondered how to get rid of it to get more clean urls in your codeigniter application ? Say your app has an url something like http://www.example.com/index.php/contact and you want it to look like http://www.example.com/contact . Yes, you can do it. In codeigniter removing index.php from url should be done by rewriting urls in htaccess file. How to Remove index.php from URL in CodeIgniter using .htaccess? Recommended Read: How to Create Login Form in CodeIgniter, MySQL and Twitter Bootstrap Recommended Read: CodeIgniter/MySQL Tutorial - Read and Display data with Twitter Bootstrap Step 1: Enable Mod Rewrite Option in your APACHE Server To rewrite urls in the htaccess file, the mod_rewrite option should be enabled in the apache serve

Best Wireless Adapters for Desktops/Laptops in 2018 - Buying Guide

صورة
Slow Internet connection sucks! Even when you have reliable ISP, good modem, router and everything, a bad wireless adapter will spoil the party. No one wants to compromise the Internet speed and connectivity in the middle of work or gaming. A good quality wifi adapter will drastically improve the INTERNET performance and give you peace of mind. Moreover, if Wi-Fi network is shared among household members, then a Best Desktop Wireless Adapter goes a long way providing fast and secure internet connection. If you are looking to buy a USB Wireless Adapter then make sure the adapter easily talks to the router and works best for desktop PC, laptop and tablet. Knowing a few things about Wi-Fi will help you pick the right wireless adapter for your needs. What Is A USB Wireless Adapter & How Does It Work? A USB wireless adapter is a small device that quickly sets up wireless connectivity to your desktop or laptop via the router. It is plugged into the USB port of the computer an

PHP CodeIgniter Pagination with Twitter Bootstrap Styles - Example

صورة
PHP Codeigniter framework provides a good number of libraries required for building a website with codeigniter and pagination library is one among them. For those who are not familiar with the term pagination, this refers to the set of numbered links that allows you to navigate from page to page to view a large set of data. For example let's say you want to fetch and display some data from database and it contains several hundreds of records. In that case pagination will be very useful to display the database resultset in chunks and let the user to skim through several page links (similar to google search results). However the pagination links in codeigniter are plain looking in nature and a little customization to codeigniter pagination doesn't hurt. Here we'll see in this tutorial, how to style codeigniter pagination links with twitter bootstrap styles . Implement Twitter Bootstrap Styles in CodeIgniter Pagination We'll see an example below to fetch and displ