PHP Tutorial : Validate email address – simple way with filter_var() function

While browsing php.net without any scope I discovered a very cute & nice way to replace the usual regular expression email checking thing.
That way is via filter_var() php function which does the things 10 times faster :

<?php
$email = “someone@example.com”;

if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
echo “Invalid email address”;
}
?>

Read PHP Tutorial : Validate email address – simple way with filter_var() function »

PHP Tutorials : Rename a mysql table

If you want to rename a mysql table via php you just need an extremely simple query like the following one:

<?php
//include db credentials

mysql_query(“rename table TheOldName to TheNewName”);
?>

Read PHP Tutorials : Rename a mysql table »

Seo Tips & Tricks : Get indexed in google very fast

I’ve heard this question too many times to stay without telling this amazing unique seo trick / tip.
You may know that doing social bookmarking, forum posting, getting an article to a popular blog, etc. will help getting indexed faster in google.
But, pay attention, no other trick than opening an adwords campaign with your site will…………….

Read Seo Tips & Tricks : Get indexed in google very fast »