Validate Email Address in PHP

 

Now a days most important for  any portal is validating the user email addresses.  We have a lot of ways are there for checking the email format.

Now in this article, we will show you how to validate the email address using the “checkdnsrr” function.

checkdnsrr — Check DNS records corresponding to a given Internet host name or IP address

Improve Portal performance using htaccess

 

Using htaccess,you can improve the site performance.Now a days website loading is a more important for end users experience and also for SEO. We need to just follow some basic rules in htaccess it improves the website speed.Using htaccess,

  • Compress content
  • Enable Browser Cache
  • Disable Http ETag header

Get any Website Page Title From URL in PHP

 

Hey guys,here below describe the how to get the page title form any website page using  URL. Here for getting the page title we are using the file_get_contents function.This one also achieve using fopen( ) but in some servers disabled this function now a days due to some security reasons.

Here below shows the PHP code to get the page title form the URL.

Login with Facebook and Google accounts in PHP

 

Every website maintain the users data on the database, for this one they using the signup.But now a days,instead of signup,they are using the social networks API’s. So,here we providing the Sign in with Google account using OAuth2.0 And Sign In with Facebook  using PHP SDK 3.0.

For this module,We need the Client ID,Client Secret and Registered Redirect Uri for Google and App Id and App Secret for Facebook .For Google one Please refer this article Create a Google OAuth2.0 Client ID. And  for the Facebook app creation please refer this article  Creation of the Facebook App

Sign in with Google account using OAuth2.0

 

Every website maintain the users data on the database for this one they using the signup.But now a days,instead of signup,they are using the social networks API’s. So,here we providing the Sign in with Google account using  OAuth2.0.

For this module,We need the Client ID,Client Secret and Registered Redirect Uri.For this one Please refer this article  Create a Google OAuth2.0 Client ID.