Below tutorial shows on how to profiling Codeigniter application. Codeigniter’s Profiler class gives the benchmark results, queries you have run and POST data and total time to execute the method etc..By using this information may used for debugging and optimization of your codeigniter application. Enabling ProfilerAdd below lines in specific controller: To disable the profiler
This tutorial will explain how to convert color code from HEX to RGB in PHP Uses: Use hex2rgb() function like the following. Tags: Convert hex color to RGB values in PHP,Convert HEX to RGB,Convert Hex Color to RGB using PHP,PHP Function To Convert Hex To RGB,How to convert Hex code to RGB code in php,Convert HEX
You may receive a message such as “Maximum execution time of 30 seconds exceeded” or “Maximum execution time of 60 seconds exceeded”. This means that it is taking to longer for a process to complete and it is timing out. There are a number of ways to fix this error. Method 1: Open wp-config.php and
In this tutorial we are going to see, how to change array keys from uppercase to lowercase. array_change_key_case() predefined php function will be used to changes all keys in array to lowercase or uppercase. Method Syntax : array_change_key_case(array,case); First Parameter : arraySecond parameter : It is optional,you can pass either CASE_LOWER or CASE_UPPER and default value is “CASE_LOWER”. Example
In this tutorial we are going to see how to upload image using rest API in PHP codeigniter. In API developement we need a case to upload image or file.Below example gives basic idea of uploading image using Codeigniter Example for upload image using rest API in PHP codeigniter View File : Controller File Uploading
In this tutorial we are going to see “How to convert short URLs back to its original URL without click or redirect?” Many scenarios we don’t want to open, so using below solution, where you can get original URL behind the short link without opening that page and doing this with PHP cURL and preg_replace methods. Code: Happy Coding..
In this tutorial we are going to see how to change file name on upload in codeigniter. Step 1. Create controller for “Rename a file while uploading in codeigniter” Use below in your own controller. Tags: Codeigniter Rename file on upload, Renaming an uploaded file in CodeIgniter ,codeigniter get filename before upload, edit uploaded file
In this tutorial we are going to see how to get only one row. we can easily return one row from database in codeigniter. I will give you simple example of fetch single record from database using mysql codeigniter. Sometime we need to get only one record from database. might be you require to get