Posts Under 'Tutorials'

Send emails using PHPMailer and GMail

Sending emails using PHPMailer v5.0.0 and GMail Requirements: 1 : PHPMailer v5.0.0 and above 2 : GMail account Download the PHPMailer v5.0.0 and above from http://sourceforge.net/project/showfiles.php?group_id=26031&package_id=252700 Now create a file you can call mail.php on your system and open it with your favorite text editor. Paste below code into it and save. For any ssl […]

Read more »


Website Cache Control Using Apache 2.x and mod_expires

mod_expires – This module controls the setting of the Expires HTTP header in server responses. The expiration date can set to be relative to either the time the source file was last modified, or to the time of the client access. The Expires HTTP header is an instruction to the client about the document’s validity […]

Read more »


How to create rss or atom feed using java

There are open source projects that can help you in generating or reading RSS feeds in Java. Till now, Rome is my favorite. Very nice, small little framework to generate RSS feeds of different types. However, if you want to parse an RSS feed which is not in standard format, you have to go with […]

Read more »


File upload using Java

First download Apache Jakarta Commons FileUpload library from this link and add into classpath of your Application. Validate HTTP Request Now that you have installed the FileUpload library, you can start writing the code. First, we have to make sure the HTTP request is encoded in multipart format. This can be done using the static […]

Read more »


How to install Tomcat Administration apps

1. To download tomcat admin apps click here and unzip or untar the file containing the administration web app files and do following. 2. Go to the location apache-tomcat-5.5.28-admin\apache-tomcat-5.5.28\conf\Catalina\localhost and move admin.xml to C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost 3. Go to the location “apache-tomcat-5.5.28-admin\apache-tomcat-5.5.28\server\webapps\” and copy admin folder to C:\Program Files\Apache Software Foundation\Tomcat 5.5\server\webapps 4. […]

Read more »