Write Custom Excel File Easily - Java Code

Their's an excellent Java-based API available for writing Excel Files,

JExcel is the Name of this API

Have a look at the Tutorial & FAQ's for more Details (Follow link Below)

http://jexcelapi.sourceforge.net/

Referrals / Check which site Referred to your Site

Referrals / Check From which site Referred to your Site

This simple example shows the user how they got to your site.

$referer = $_SERVER['HTTP_REFERER'];
echo "You reached this site via " . $referer;

Creating a simple feedback form using PHP

Creating a simple feedback form using PHP is very easy, thanks to PHP's prebuilt mail() function. In this tutorial I'll show you a complete, working example.

Firstly, lets create the HTML portion of the form:

<form action="sendmail.php" method="POST">
<b>Your name :</b> <input type="text" name="name"><br>
<b>Your e-mail :</b> <input type="text" name="email"><br>
<b>Message</b><br><textarea name="message"></textarea>
<input type="submit" value="Send"><input type="reset" value="Clear">
</form>

The Best Way to Learn PHP

Learning something from scratch is almost always an arduous affair — you simply have no idea as to where to start, or not to start, to kick things off. I loathed learning about the idiosyncrasies of C++’s syntax when all I wanted to learn were some darn programming concepts. As I’m sure you can agree, this is a less than ideal situation.
This is where the Nettuts+ “The Best Way to Learn” series comes into the picture. This series is intended to be your blueprint, your road map, your plan of action for learning your topic of choice! You don’t have to worry about finding the best resources, sorting out the bad ones, and figuring out what to learn next. It’s all here. Just follow it, step by step.
Today, we’re going to figure out the best way to learn PHP.


Assignment #1: Disregard the Naysayers

If you’re reading this, chances are that you’ve googled a lot to decide which language to learn and how. And without a doubt, you must have run into a ton of articles about how language X is so much better than PHP and PHP is going to die through obscurity soon.
Haters gonna hate!
As the popular saying goes, haters gonna hate! PHP has been at the helm of the web as you know it and that’s for a very good reason. It’s a mature language, has excellent documentation and a massive number of learning resources along with a great variety of utilities built around it.
And let’s not forget the sheer proliferation of hosts and frameworks PHP has spawned. Like Heroku like hosting? Don’t worry, there are a number of excellent options for PHP as well!

Assignment #2: Install PHP through [X]AMP

Tut image
You could just install PHP but it gets quite boring without a server and some sort of database to play around with. And as a beginner, it’s not really trivial work to get all of these installed and configure each to work with the others without issue.
This is where you grab a package such as XAMPP. These life savers typically install Apache, your web server, along with mySQL, a database system along with PHP significantly cutting down on set up time.
Bonus points if you’re the code monkey type and install everything by hand.

Assignment #3: Dive into PHP!

Before I send you off to alternate sources for PHP enlightenment, let me first refer you to our very own series for absolute beginners from none other than your favorite editor, Jeffrey Way.*
In this series, everything from installing PHP to variables, from functions to working with SQL are covered. They maybe more than two years old but gosh darnit!, they’re still extremely relevant.
*who is also painfully humble so shoosh and stop making him blush!

Random password generator

PHP password generator is a complete, working random password generation function for PHP. It allows the developer to customize the password: set its length and strength. Just include this function anywhere in your code and then use it.

Get IP address (even when connecting via a proxy)

Returns the real IP address of a visitor, even when connecting via a proxy.

Sending mail

Using PHPMailer

PHPMailer
 a powerful email transport class with a big features and small 
footprint that is simple to use and integrate into your own software.

Get Live currency value using Yahoo API

Hi,
Here is a simple PHP code, using which you can get the live currency Value from yahoo finance ( http://finance.yahoo.com/ )
In this example i am getting the value of US Dollar in Indian Rupees.
<?php
$from   = 'USD'; /*change it to your required currencies */
$to     = 'INR';
$url = 'http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s='. $from . $to .'=X';
$handle = @fopen($url, 'r');

Give a time delay for a function in Javascript

Hi,
You people might have come across call a javascript function after some delay. I googled and find all incorrect things. Here i am posting the exact thing that needs.
<script type="text/javascript">
 setTimeout(function(){
 your_function_name();
 }, 3000);
</script>
The above function “your_function_name()” will be called after 3 second

*change the Name of the Function (Marked in Red Color)as per your need.

Setup multiple sites on your local machine using XAMPP or Apache


Hello Everyone,

Its been long time, was busy with some project works.
Traditional approach (what we used to do):
As a web developer you might have come across a situation where you need to setup multiple sites on your local machine. May be you are working on multiple projects or working on your personal site and your regular project. Earlier what we used to do is change the doc root in your apache’s httpd.conf file [C:\xampp\apache\conf\httpd.conf]. Similar to this
DocumentRoot "C:/xampp/htdocs/myproject1"
So this will help us to point the localhost directly to myproject1 folder. In other words when you hit http://localhost/ you will get the contents of myproject1. If we had another site to be configured we need to change this DocumentRoot again and restart the apache.

New approach:

GOOGLE FONTS API - Use It to Decorate Your Webpage Fonts


Hi all,


On Wednesday, May 19, 2010 google has announced google web fonts. Its a open source and its the end of all our typographic problems. 
We were using flash, images etc to achieve the rich typography in the front end. Now all these things will be replaced with new concept from google.

Javascript to Covert Number into Words/Sentence

This Javascript will convert any Number into Words

Just Copy this in a new Html File and run it, to test it

<script type="text/javascript">

function test_skill() {