Changes to be made in Xampp/Wamp/Lamp Server to use PHP MAILER CLASS

Hiiiiii, There are some changes need to be made in the php.ini of your Xampp/Wamp/Lamp  Server to use PHP MAILER CLASS to send mails from your LOCALHOST. PHP mailer class allows you to send mails from your local machine. To send mails ,PHp mailer class requires some extensions like soap, ssl, sockets but these are commented in php.ini file so,we just have to uncomment those extensions.

 

PHP mailer class

 

 

To see code……  CLICK HERE

Using PHP Mailer Class to send mails from Localhost (Without making you website Live)

Hiiiiii, We all know that its common practice to send mails in our PHP website and you can perform this mail sending task by PHP  mail() function , but the problem with this function is that it works only when you site is live and you have put your website on some web server. But what when you have to test mail sending your localhost in your local machine at the time of developing. You can solve this problem by using PHP mailer class in your website to send mails from your local host .

To use PHP mailer class in your code , you have to made some changes in php.in to make PHP mailer class work and to see the changes, CLICK HERE .

 

PHP mailer class

 

 

 

To see code……  CLICK HERE

Maintaining and Using Sessions in WordPress

Hiiii, We all know the importance of maintaining sessions and session variables on our website and use the value of that variables on any page of our website once they are declared  and assigned with some value.

But what happen when you have to maintain sessions in WordPress for some custom module.Wordpress by default doesn’t maintain sessions as used in PHP and it then also you do so, that value declared to session variable will be accessible once on that page but you cannot use that value on any other pages.

To solve this problem , in this post I’ll be telling you how to maintain sessions in wordpress.

 

Wordpress Sessions

 

 

To see code……  CLICK HERE

Implementing Google Maps On Your Site

Hiiii, we all know that Google maps is powerful application which allows to get location information with actual coordinates value. You may have seen Google maps on some website demanding for you location and it calculates the coordinates correspondingly according to your location. So, here in this tutorial, I will be teaching you how to integrate Google maps on your website.

 

Google Maps

To see code……  CLICK HERE

How to Include Custom Javascript in WordPress (wp_enqueue_scripts)

Hiiii, those who uses wordpress for web developent must be knowing this and those who are new to wordpress. to them I want to tell tell that you can’t just use our javascript code in wordpress same as we use in core PHP.

In wordpress all the ‘$’ in jQuery code must me replaced with ‘jQuery’ and you don’t have to include “jQuery js” beacause wordpress itself provides a support for jQuery.

In wordpress , you can’t use the javascript code written by you anywhere in rest of your code rather after writing your code anywhere in you website, you have to send that javascript code to wordpress site ‘header’.

To perform this function of sending and including a custom javascript code in wordpress , a function namely- wp enqueue script is used. So. in this post I wiil telling how to use wp enqueue script function to make your javascript code work in wordpress.

 

 

To see code……  CLICK HERE