$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https...
Currency Converter
https://www.google.com/finance/converter?hl=en&a=100&from=usd&to=inr
Use of undefined constant EXT - assumed 'EXT' Filename: core/MY_Loader.php
The EXT is defined in your root index.php file. // The PHP file extension // this global constant is deprecated. define ( 'EXT...
Only variable references should be returned by reference - Codeigniter
Edit filename: core/Common.php, line number: 257 Before return $_config [ 0 ] =& $config ; After $_config [ 0 ] =& $co...
mysql query to fetch records between the give times
The below is the mysql query to get records between the given times.. $now = date('H:i',time()); $time_restriction = "from...
Show alert box in admin panel when click on the Database backup button
<li class="" <?php if(strpos($m[$i]->menu_url,'db_backup')) echo 'id="db_download"'?>>...
Dynamically add listener to id with javascript,
<script> document.getElementById("db_download").addEventListener("click", function(event) { var r =...
How to put website under Maintenance mode in codeigniter
To put site under construction or under maintainence mode Step 1: In codeigniter root index.php file make it the below line of code ava...
Contact us form validation in jquery with jquery validation
<script> $(function () { $('#contact_us').validate({ rules: { email: { ...
Javascript Validation ready to use
<form name="contact" onsubmit="return verify(this)" action="formmail.php" method="post"> ...
PHP function to get the current page URL
<?php function curPageURL() { $pageURL = 'http'; // if ($_SERVER["HTTPS"] == "on") {$pageURL .= ...
How to get the function name inside the function in PHP
To get the function name inside any function in php, PHP has special MAGIC CONSTANTS. From the magic constants here we used __FUNCTION__ t...
Date comparison in php
<? php $today = date ( 'd-m-Y' , time ()); $exp = date ( 'd-m-Y' , strtotime ( $mc [ 0 ]-> expiry_date ));...
How to get current formatted date dd/mm/yyyy in JavaScript
var today = new Date (); var dd = today . getDate (); var mm = today . getMonth ()+ 1 ; //January is 0! var yyyy...
Angular JS Tutorial Part 6 with $http service
$http angular js service Encapsulates HTTP communication GET, POST, PUT, DELETE Can "ask" for $http inside a controller Jus...
Angular JS Part - 5 controllers with objects scope
Displaying data with angular js object example <!DOCTYPE html> <html lang="en" ng-app="myapp"> <...
Angular JS Controllers advanced capabilities Part-4
Angular JS is popular because it isolates the application logic from the user interface layer and supports separation of concern...
AngularJS - MVC Architecture
M odel V iew C ontroller or MVC as it is popularly called, is a software design pattern for developing web applications. A Model View Co...
Angular JS Part 3 Controllers example
HI, In angular js we are able to create n number of controllers Controller Basics The Controller directive in html for angular j...
AngularJs Tutorial Part-2 with expressions
AngularJS binds data to HTML using Expressions . AngularJS Expressions AngularJS expressions are written inside double braces: {{ e...
Angular JS Tutorial Part1
<!DOCTYPE html> <html lang="en" ng-app="myapp"> <head> <meta charset="UTF-8"...
Dynamic TABS selection in bootstrap
<script type="text/javascript"> jQuery(function($){ var d = new Date(); var time = d.getHours(); if (time ...
Simple oops example in php
<?php class Student{ private $fullname; private $mobile; function setFullName($val){ $this->fullname = $val; } funct...
Make SEO friendly Title for URL in php
function make_seo_name ( $title ) { return preg_replace ( '/[^a-z0-9_-]/i' , '' , strtolower ( str_replace ( ' ...
Anti-SQL Injection Function example in php
<?php function cleanuserinput ( $dirty ) { if ( get_magic_quotes_gpc ( ) ) { $clean = mysql_real_escape_string ( stripslas...
File Uploading Deeply explained example
PHP file upload, core php file upload <?php error_reporting(E_ALL); function check_file_is_image($fileName){ //you need to send ...
How to open files with dreamweaver through filezilla
Go to Edit -> Settings -> Filetype Associations, manually add the following line and click ok: php "F:\Program Files\Adobe\Ad...
File Upload Conditions helper in Codeigniter
usage : <?php $this->load->helper('my_file_upload_helper'); check_file_is_image($_FILES['input_type_field_na...
How to print document content with jquery
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="...
Popular Posts
- Detecting the Ajax request in Core PHP
- Demanding a price for software development
- Payment Gateway Options and Pricing in India
- How to integrate SEND Grid with Codeigniter
- How to print document content with jquery
- Add one day to the today date in php
- File Upload Conditions helper in Codeigniter
- Address auto fill city, state, district, country, pincode
- Codeigniter 4 Email Code
- How do I run a PHP script using windows Task Scheduler?