Time Ago or Time To Go function in php

Introduction Time ago or time to go function in PHP shows how to display how much time already passed or how much time to go for a given date time. Generally you want to implement this kind of functionality in many scenarios like someone has posted comment on your blog, tutorial, product or article then you want to show how…

Display site maintenence message using Codeigniter

Introduction This example shows how we can display site maintenance message using Codeigniter 3 to the user. This tutorial will also teach you how to work with hooks in Codeigniter framework. We build the website and live our website but it does not mean that all worked have been done for the website and in future we will never update…

Secure Joomla site using htaccess

.htaccess is a very ancient and one of the most powerful configuration files that controls the Web Server settings which runs your website. The powerful .htaccess file has the ability to control access of the WWW’s Hypertext Transfer Protocol(HTTP) using Password Protection, Error Page Redirects, 301 Redirects, URL rewrites etc. Now we will see how we can create a .htaccess…

Top twenty htaccess security directives

.htaccess file is a very ancient and one of the most powerful configuration files that controls the Web Server (Apache HTTP Server) settings which runs your website. The powerful .htaccess file has the ability to control access of the www’s (World Wide Web) Hypertext Transfer Protocol (HTTP) using Password Protection, Error Page Redirects, 301 Redirects, URL rewrites etc. Now I…

Backup Site and Database in Codeigniter

Introduction I will show you how to backup site or application code and database in PHP based Codeigniter framework. In the world of web it is important to take backup of our site and database frequently. You don’t know when you’d come across unexpected situation which causes your site stop working. Here I have developed an application in Codeigniter, which…

Sending Email with attachment using Struts2

This tutorial shows how to send email with an attachment. This tutorial uses one input form where a user gives input for ‘Recipient’s Email’ where the intended email will be sent, ‘Email Subject’, ‘Email Message’ and uploads one file which will be sent as an attachment with the email. This email sending example uses gmail smtp server to send the…

Upload multiple files using single browse button in Struts2

This tutorial shows how to upload multiple files using single browse button in Struts 2 framework. There is another tutorial on Multiple Files Upload in Struts2 which uses multiple browse buttons for multiple file upload but this tutorial uses only one button for uploading multiple file upload in Struts2. You need to use just attribute multiple=”multiple” with <s:file/> tag for…

Submit form JavaScript onChange

Auto Submit HTML Form This tutorial example shows how to submit form automatically when a radio button is selected. The below example has two radio buttons and when one of them is selected then the form gets submitted automatically and displays the corresponding value. Sometimes you may need to submit the form automatically. Based on form submission, you may need…

Configure JMS Client using GlassFish 3

I have taken Theoretical concepts from http://docs.oracle.com/javaee/1.3/jms/tutorial/1_3_1-fcs/doc/overview.html#1027335 with a little modifications. What Is Messaging ? Messaging is a method of communication between software components or applications. A messaging system is a peer-to-peer facility: A messaging client can send messages to, and receive messages from, any other client. Each client connects to a messaging agent that provides facilities for creating, sending,…

Using Multiple Versions Of jQuery On Same Web Page

Use Of Multiple jQuery Files This example shows how you can use multiple versions of jQuery on the same page. It’s simple and very easy to use multiple versions using jQuery.noConflict(true). This jQuery.noConflict(true) was introduced in jQuery version 1.1. There are various reasons behind using the multiple versions of jQuery. Some reasons are given below: