Recent Posts

Connect On Facebook

Tuesday 29 March 2011

Meaning of Nanbenda....

"Nanbenda" is the Tamil word.Most powerful and popular word of Tamil,Youths are most likable word in tamil.

It means by you are my close friend.It is the word used by Arya in his latest movie BOSS engira Baskaran . It refers to a friend literally.This word also used Super * Rajini kanth in "Thalapathi" movie in 1991.....




Keywords : Meaning of Nanbenda, Tamil word Nanban meaning,Nonban Word meaning.What is the English meaning of Nanban.

Monday 28 March 2011

Send an Email using PHP...


Here most best and effective codes are available for send a mail using PHP.PHP codes are diffrent type are there for send a mail.Two steps of coding there. 1st one create a form for compose a mail.Then send the mail using while press submit button.2rd part is send mail through the server using server side script of PHP.

Following a PHP code to send an mail.....


<?
//Send Email Code -- Begins to Users//
$to = "to@gmail.com"; // TO email id
$subject = "Subject Field";
$message = "This is example message";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .= "From: <".$pemail."> \r\n";
mail($to, $subject, $message, $headers);
//Send Email Code -- End//
?>

following Example code to send an Mail using PHP..
form.php

<?php $site_admin = 'your@email.adress';

// function ae_send_mail (see code above) is pasted here

if (($_SERVER['REQUEST_METHOD'] == 'POST') &&
isset($_POST['subject']) && isset($_POST['text']) &&
isset($_POST['from1']) && isset($_POST['from2']))
{
$from = $_POST['from1'].' <'.$_POST['from2'].'>';
// nice RFC 2822 From field

ae_send_mail($from, $site_admin, $_POST['subject'], $_POST['text'],
array('X-Mailer'=>'PHP script at '.$_SERVER['HTTP_HOST']));
$mail_send = true;
}
?>
<html><head><title>Send us mail</title>
</head><body>
<?php
if (isset($mail_send)) {
echo '<h1>Form has been sent, thank you</h1>';
}
else {
?>
<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
Your Name: <input type="text" name="from1" size="30" /><br />
Your Email: <input type="text" name="from2" size="30" /><br />
Subject: <input type="text" name="subject" size="30" /><br />
Text: <br />
<textarea rows="5" cols="40" name="text"></textarea>
<input type="submit" value="send" />
</form>
<?php } ?>
</body></html>


php function  ae_send_mail.php


<?php
function ae_send_mail($from, $to, $subject, $text, $headers="")
{
if (strtolower(substr(PHP_OS, 0, 3)) === 'win')
$mail_sep = "\r\n";
else
$mail_sep = "\n";

function _rsc($s)
{
$s = str_replace("\n", '', $s);
$s = str_replace("\r", '', $s);
return $s;
}

$h = '';
if (is_array($headers))
{
foreach($headers as $k=>$v)
$h = _rsc($k).': '._rsc($v).$mail_sep;
if ($h != '') {
$h = substr($h, 0, strlen($h) - strlen($mail_sep));
$h = $mail_sep.$h;
}
}

$from = _rsc($from);
$to = _rsc($to);
$subject = _rsc($subject);
mail($to, $subject, $text, 'From: '.$from.$h);
}
?>

Friday 11 March 2011

Nice Photo in Pondicherry

Nice Photo in Pondicherry Place Shooted at Morning 8.oo clock..My Friend is send this images to me .I Upload this photos on this blog.if you like this images means please give a comments. Thankyou.


Wednesday 2 March 2011

Find Name - Pazzle Java Program

"Find Name"  if you run this java program then you thinkable name will produce. just you copy The Program run it your system you got the result .If you like this program means please comments me.Thank you.


import java.io.*;
class NameDetect
{
char a[]=new char[8];
char b[]=new char[8];
char c[]=new char[10];
char end[];
char d='a';
int j=0,k=0,m=0;
int main[];
int main1[];

NameDetect()throws Exception
{
DataInputStream dis=new DataInputStream(System.in);
System.out.println("\t\t\tGUESS NAME DETECTOR");
System.out.print("\tHow many letters Your gess name:");
int val=Integer.parseInt(dis.readLine());
System.out.println("...............................................");
main=new int[val];
for(int i=0;i<val;i++)
{
display();
int kkkk=i+1;
System.out.print("\n\tEnter "+kkkk+" letter section:");
main[i]=Integer.parseInt(dis.readLine());
System.out.println("...............................................");
j=0;k=0;m=0;
d='a';
}
main1=new int[main.length];
end=new char[main.length];
for(int i=0;i<main.length;i++)
{
display2();
int kkkk=i+1;
System.out.print("\n\tEnter "+kkkk+" letter section:");
int ok=Integer.parseInt(dis.readLine());
System.out.println(".................................................................");
if(main[i]==3)
{
end[i]=c[ok-1];
}
if(main[i]==2)
{
end[i]=b[ok-1];
}
if(main[i]==1)
{
end[i]=a[ok-1];
}
}
System.out.print("\nYour guess name is:");
for(int i=0;i<end.length;i++)
{
System.out.print(end[i]);
}
}
void display2()
{
for(int i=0;i<main.length;i++)
{
int kk=8,mm=10;
if(main[i]==3)
{
display1(kk,c);
}
if(main[i]==2)
{
display1(mm,b);
}
if(main[i]==1)
{
display1(mm,a);
}
}
}
void display1(int kkk,char aaa[])
{
for(int i=0;i<aaa.length;i++)
{
System.out.print(aaa[i]+"\t");
}
System.out.print("\n");
}
void display()
{
for(int i=0;i<=26;i++)
{
if(i<8)
{
a[j]=d;
d++;
j++;
}
if(i>8&&i<=16)
{
b[k]=d;
d++;
k++;
}
if(i>16&&i<=26)
{
c[m]=d;
d++;
m++;
}
}
for(int i=0;i<10;i++)
{
if(i<8)
{
System.out.println(a[i]+"\t"+b[i]+"\t"+c[i]);
}
else
{
System.out.println("\t\t"+c[i]);
}
}
}

}
class FindName
{
public static void main(String s[])throws Exception
{
NameDetect aa=new NameDetect();
}
}

keywords: Find Name  - Pazzle Java Program | Pazzle java Program | Find the Name pazzle java Program,Interesting java program

Guess Number - Puzzle java Program


This java program is most Interesting java program.This program is find your guessable number.Most interesting java program .Just Copy this code and run it your system.This code Guess your number.if you like this program  means please comments me .Thank you

import java.io.*;
class Find
{
int aaa[]=new int[22];
int[] find(int a[],int b[],int c[])
{
int m=0;
int nnn=0;
int kkk=0;
int mmm=1;
for(int i=0;i<21;i++)
{
if(i<7)
{
aaa[mmm]=a[m];
}
if(i>=7&&i<14)
{
aaa[mmm]=b[nnn];
nnn++;
}
if(i>=14)
{
aaa[mmm]=c[kkk];
kkk++;
}

m++;
mmm++;


}
return aaa;
}
}
class Guess
{
public static void main(String s[])throws Exception
{
System.out.print("Your Guess any number 1 to 21\n\n");
DataInputStream dis=new DataInputStream(System.in);
int a[]=new int[7];
int b[]=new int[7];
int c[]=new int[7];
int d[]=new int[7];
int e[]=new int[7];
int f[]=new int[7];
int aaa[]=new int[22];
int m=0;
System.out.print("\n\tBlock1\t\tBlock2\t\tBlock3\t\n\n");
for(int i=0;i<21;i=i+3)
{
a[m]=i+1;
b[m]=i+2;
c[m]=i+3;
System.out.print("\t"+a[m]+"\t");
System.out.print("\t"+b[m]+"\t");
System.out.print("\t"+c[m]);
System.out.println("\n");
m++;
}
System.out.print("What Block Your Guess number:");
int h=Integer.parseInt(dis.readLine());
System.out.print("\n\n");
if(h==1)
{
Find ff=new Find();
aaa=ff.find(b,a,c);

}
if(h==2)
{
Find ff=new Find();
aaa=ff.find(a,b,c);
}
if(h==3)
{
Find ff=new Find();
aaa=ff.find(a,c,b);
}
m=0;
System.out.print("\n\tBlock1\t\tBlock2\t\tBlock3\t\n\n");
for(int i=0;i<21;i=i+3)
{
a[m]=aaa[i+1];
b[m]=aaa[i+2];
c[m]=aaa[i+3];
System.out.print("\t"+a[m]+"\t");
System.out.print("\t"+b[m]+"\t");
System.out.print("\t"+c[m]);
System.out.println("\n");
m++;
}
System.out.print("What Block Your Guess number:");
h=Integer.parseInt(dis.readLine());
System.out.print("\n\n");
if(h==1)
{
Find ff=new Find();
aaa=ff.find(b,a,c);

}
if(h==2)
{
Find ff=new Find();
aaa=ff.find(a,b,c);
}
if(h==3)
{
Find ff=new Find();
aaa=ff.find(a,c,b);
}
m=0;
System.out.print("\n\tBlock1\t\tBlock2\t\tBlock3\t\n\n");
for(int i=0;i<21;i=i+3)
{
a[m]=aaa[i+1];
b[m]=aaa[i+2];
c[m]=aaa[i+3];
System.out.print("\t"+a[m]+"\t");
System.out.print("\t"+b[m]+"\t");
System.out.print("\t"+c[m]);
System.out.println("\n");
m++;
}
System.out.print("What Block Your Guess number:");
h=Integer.parseInt(dis.readLine());
System.out.print("\n\n");
if(h==1)
{
Find ff=new Find();
aaa=ff.find(b,a,c);

}
if(h==2)
{
Find ff=new Find();
aaa=ff.find(a,b,c);
}
if(h==3)
{
Find ff=new Find();
aaa=ff.find(a,c,b);
}
System.out.println("Your Guess Number is:"+aaa[11]);
}
}

Keyword : Puzzle Java program | Guess Number java Program | java Program Puzzle | Interesting java Program | Likeable java Program

Popular Posts

Disclaimer

This blog-spot does not host any files mentioned on this blog or on its own servers. He emphasized that to various links on the Internet that already exist and are uploaded by other websites or users there. Links to albums will be removed if a complaint with the artist or publisher.