Calculate the difference between two dates in PHP

To find the difference beetween Two dates in PHP, For example Check this following code. <?php $d1 = “2015-11-01 22:45:00”; $d2 = “2015-12-04 13:44:01”; $diff = abs(strtotime($d2) – strtotime($d1)); $years = floor($diff / (365*60*60*24)); $months = floor(($diff – $years * 365*60*60*24) / (30*60*60*24)); $days = floor(($diff – $years * 365*60*60*24 – $months*30*60*60*24)/ (60*60*24)); $hours = […]

Integrate payu money payment gateway in magento

Payu money is one of the best payment gateway platform for integrating the payment with any money transaction site like e-commerce. It is also very easy to integrate Payu money with any e commerce platform like magento. Integrate Payu money with Magento First of all go the link If you have already account on login else […]

How to create an sendgrid account easily

What is Sendgrid? Sendgrid is a cloud based email service provider platform for sending email using it’s site or by api. It is one of the best platform for email sending provider. Features It provides the Transactional Email It provides the Email Marketing And Also it provides best expert services from the sendGrid’s email experts. Create […]

WordPress Fatal error: Internal Zend error – Missing class information for in /home/dsdadas/public_html/wp-content/themes/quest/inc/pacebuilder/helper.php on line 7

This Error belongs to wordpress theme site. This occurs when you edit or upadte a page or post from the admin section. Permanent solution for this issue is as follows Open the page /wp-content/themes/quest/inc/pacebuilder/helper.php and replace the line no 2 from if ( ! class_exists( ‘PT_PageBuilder_Helper’ ) ) : to if(!class_exists(‘PT_PageBuilder_Helper’)): I just removed the spaces from the […]

Jquery Ajax synchronous and asynchronous calls

It is very important to understand the concept, use of Synchronous and Asynchronous jquery ajax calls and the difference between these two different techniques with  jquery ajax example. Synchronous ajax calls : The jquery ajax synchronous call script triggered or fired, it stops and waits untill the response from the server is back, i.e. untill […]

Php web crawler

How to create a php webcrawler? TO create a webcrawler, there is a framework to do so and it is very easy to that. First of all Download the library and source code from the link In the below of that page there is a link for downloading for the code. Click on that link […]

How to read file names in a directory in php

All file names can be read in a directory in php using a function glob() If only specific type of files we want to read , for example read all text files than the code will be as follow <?php foreach (glob(“./ABC/*.txt”) as $fn) { echo “$fn size ” . filesize($fn) . “\n”; } ?> […]

Add External css files to html or php web page

In html there are some tags which helps to include the external files to the html or php web page How to include css file in html <link rel=”stylesheet” type=”text/css” href=”externalfile.css” /> How to include css file in php <?php echo ‘<link rel=”stylesheet” type=”text/css” href=”externalfile.css” />’; ?> How to include javascript file in html <script […]