How to find and remove duplicate elements from an array? - http://www.perlmonks.org/?node_id=90493
perlfaqs - http://perldoc.perl.org/perlfaq4.html
perl references - http://www.sdsc.edu/~moreland/courses/I ... rlref.html
perl tuts - http://perldoc.perl.org/index-tutorials.html
[ add comment ] | permalink |




( 2.8 / 26 )http://www.pixel2life.com/publish/tutor ... ng_system/
[ add comment ] | permalink |




( 3 / 103 )mysql_real_escape_string()
<?php
// Connect
$link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password')
OR die(mysql_error());
// Query
$query = sprintf("SELECT * FROM users WHERE user='%s' AND password='%s'",
mysql_real_escape_string($user),
mysql_real_escape_string($password));
?>
[ add comment ] ( 3 views ) | permalink | related link |




( 3.1 / 88 )$content = "
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'
'http://www.w3.org/TR/html4/loose.dtd'>
<html>
<head>
<title>TotalESL</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
</head>
<body>
<table width='600' border='0' cellspacing='2' cellpadding='2'>
<tr>
<td align='left' class='textbig'><strong>Dear ".$username.":</strong><br><br>
Thank you for joining TotalESL.com, First Stop for Your Second Language Needs. <br>Please note your account information <br />
<br />
<table width='100%' border='0' cellspacing='2' cellpadding='2'>
<tr valign='top'>
<td width='140' align='left' class='text'> <strong>Username:</strong></td>
<td align='left' class='text'>".$username."</td>
</tr>
<tr valign='top'>
<td align='left' class='text'><strong>Password:</strong></td>
<td align='left' class='text'>".$password."</td>
</tr>
<tr valign='top'>
<td align='left' class='text'><strong>IM/Chat Username:</strong></td>
<td align='left' class='text'>".$username."</td>
</tr>
</table>
<br></td>
</tr>
<tr>
<td class='text' align='left'>Congratulations! You may to proceed and use our member features:<br>
</td>
</tr>
<tr>
<td class='text' align='left'> </td>
</tr>
<tr>
<td class='text' align='left'>Thank you.
<br />
<br />
Admin
<br />
TotalESL.com <a href='http://www.totalesl.com'><br />
http://www.totalesl.com</a></td>
</tr>
</table>
<br>
</body>
</html>";
[ 1 comment ] ( 12 views ) | permalink |




( 3 / 87 )Code below works without errors
<?php
$Name = "Da Duder"; //senders name
$email = "email@adress.com"; //senders e-mail adress
$recipient = "PersonWhoGetsIt@emailadress.com"; //recipient
$mail_body = "The text for the mail..."; //mail body
$subject = "Subject for reviever"; //subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
mail($recipient, $subject, $mail_body, $header); //mail command :)
?>
[ add comment ] ( 7 views ) | permalink | related link |




( 2.9 / 76 )<?php
function generatePassword($length=9, $strength=0) {
$vowels = 'aeuy';
$consonants = 'bdghjmnpqrstvz';
if ($strength & 1) {
$consonants .= 'BDGHJLMNPQRSTVWXZ';
}
if ($strength & 2) {
$vowels .= "AEUY";
}
if ($strength & 4) {
$consonants .= '23456789';
}
if ($strength & 8) {
$consonants .= '@#$%';
}
$password = '';
$alt = time() % 2;
for ($i = 0; $i < $length; $i++) {
if ($alt == 1) {
$password .= $consonants[(rand() % strlen($consonants))];
$alt = 0;
} else {
$password .= $vowels[(rand() % strlen($vowels))];
$alt = 1;
}
}
return $password;
}
?>
[ add comment ] ( 1 view ) | permalink | related link |




( 3 / 68 )<?php
$str = "I am the best";
echo str_word_count($str);
?>
********out put *******
4
[ add comment ] ( 1 view ) | permalink |




( 2.8 / 29 )<?
$string1="rakesh";
$string2="rake";
$string3="rakesh";
$string4="rakesh";
similar_text($string1, $string2, $p);
similar_text($string3, $string4, $q);
echo "Percent: $p%".'<br>';
echo "Percent: $q%".'<br>';
?>
******* out put *********
Percent: 80%
Percent: 100%
[ add comment ] ( 1 view ) | permalink |




( 3 / 25 )<?php
$replace = str_replace("r", "t", "kumar");
echo $replace;
?>
**********output ********
kumat
// here r replace with t
[ add comment ] ( 1 view ) | permalink |




( 3.1 / 27 )<?php
echo str_repeat("S2k", 10);
?>
// here s2k repeat 10 times.
******* output ******
S2kS2kS2kS2kS2kS2kS2kS2kS2kS2k
[ add comment ] ( 1 view ) | permalink |




( 3 / 36 )
Calendar



