32 private links
If you use WordPress as your publishing platform and are concerned about speeding up your website, caching will help you. The faster a web page loads, the better the user experience is.
This is how WordPress caching works: it generates a copy of your web pages and stores them in your server as static files (i.e. as HTML documents) and/or cached database queries. Afterwards, when a site visitor arrives at a particular page, the server gives them the cached page rather than re-querying your database and dynamically generating it, thus speeding up page response times and potentially reducing the server resources required for generating and serving a web page.
Having the right code snippet at the right time can definitely be a life saver for web developers. Today, I’ve compiled 10 really awesome PHP code snippets that will, I hope, be very helpful in your forthcomming developments.
Super simple page caching
Calculate distances in PHP
Convert seconds to time (years, months, days, hours…)
Force file download
Get current weather using Google API
Basic PHP whois
Get latitude and longitude from an adress
Get domain favicon using PHP and Google
Calculate Paypal fees