Kaz USA, MA - Southborough, MA
and drug stores. For more information...fast-growth area for Kaz. As such...looking to add a Web Programmer to the Web Team...existing and future... view details
Apply View Details
CyberCoders Engineering, TN - Knoxville
Director/Sr. Programmer with PHP, Visual Basic...be responsible for managing a small team of programmers and occasionally...development skills- PHP... view details
Apply View DetailsPosted on July 27 2009 at 11:40 PM
For web sites development or advertising Please contact Us:
Mobile : IND 9010775756
Mial Id : mywebin@gmail.com
Posted on July 26 2009 at 03:43 PM
We offer website design and development from India, our services extent from development of your corporate identity to web development services for both offline & online media. We excels in custom website solutions, web programming, web application development using Web 2.0, e-commerce design and development, SEO, Content Management, Affiliate Networks etc. across various industry verticals including but not limited to publishing, real estate, television, entertainment, education etc.
Posted on July 11 2009 at 11:01 PM
1).Base64 Encode and Decode String in PHP
function base64url_encode($plainText) { $base64 = base64_encode($plainText); $base64url = strtr($base64, '+/=', '-_,'); return $base64url; }
function base64url_decode($plainText) { $base64url = strtr($plainText, '-_,', '+/='); $base64 = base64_decode($base64url); return $base64; }
2).Generate An Authentication Code in PHP
3).Date format validation in PHP
function checkDateFormat($date) { //match the format of the date if (preg_match ("/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/", $date, $parts)) { //check weather the date is valid of not if(checkdate($parts[2],$parts[3],$parts[1])) return true; else return false; } else return false; }
4).HTTP Redirection in PHP
5).Unzip a Zip File
//Use the code as following:
Posted on June 07 2009 at 01:55 PM
In order to guard your phpBB forum from redundant letters,you can use the below simple
function called Flaf_Spam ,
which is devoted to fighting spam.
To use Flat_Spam mode, you should download posting.php file from your forum's directory,
and simply paste the below
code at line number nearer to 1020.
//avoid posting span words in reviews
function flag_spam($text) {
// Check for common spam words
$words = array(
'xxx',
'http',
'www',
'url',
'.com',
'.net',
'.org');
foreach ($words as $word) {
preg_match("/$word/i", $text, $matches);
if(count($matches) > 0)
{
$total_matches = 1;
}
}
return $total_matches;
}
$total_matches_spam = flag_spam($message_parser->message);
replace
With
//badwords
if($total_matches_spam!="1")
{
unset($message_parser);
$redirect_url = submit_post($mode, $post_data['post_subject'], $post_data['username'],
$post_data['topic_type'], $poll, $data, $update_message);
}
else {
$url = "Location:http://yoursitename.com/";
meta_refresh(3, $url);
$message .= '
' . sprintf($user->lang['RETURN_FORUM'], '
}
That is it
This function perform the necessary checks which determine whether a certain message is spam or not.
$39.99
HTML : Web Standards Programmer's Reference: HTML, CSS, JavaScript, Perl, Python, and PHP
More Info Buy Now!