Skip to main content

Posts

Showing posts from April, 2017

How to Leverage Browser Caching in WordPress – To improve page speed

verview Leverage Browser caching is an important parameter that google and y-slow used to analyze the performance of your webpage. If you’ve ever run   Google PageSpeed   test on your website, it has recommended that you  leverage browser caching. What is Browser Caching? When a user visit your webpage for the first time, their browser will store the copies of   static files (images, java script, css, favicon, etc) of your webpage locally in their computer. This means the browser doesn’t have to download them again in-case the user re-visit your webpage, because browser will fetch data from the cache instead of asking the server. The end result is your webpage will appear to load faster in user’s browser. This process is called  browser caching. Why leverage browser caching? Caching your website resources on the visitor’s computer will let them load your pages faster every time they come back to your site. If the resources a...

How to create web services in php

Web services are software available on internet. They can communicate and provide information to client programs based on XML messaging. In this tutorial we are going to learn about how to create web services in php using NuSOAP. We will also look in to the basics of web services, SOAP and learn to develop  web services in php . 1. Create a MySQL database and a table for books. 2. Insert sample data into the database table. 3.  HTML form to get ISBN number from user. 4. POST form data to a php page and send to web service. 5. Create a web service that connects to MySQL database. 6. Fetch book information based on ISBN number and respond to client. 7. Client receives data from web service and display to user. REST Web Services Suppose you are working on a  shopping cart application  and need to calculate the shipping charges for the user, so instead you develop a new module to calculate shipping, can use a web service from  FedE...