Exclude some posts from WP_Query All over

Add code in functions.php

 

person shubham sharmaaccess_time October 10, 2017launch Read More

Using Apache mod_expires to control browser caching

Apache’s mod_expires module allows settings by file type to control how long browsers cache files. This is useful for ensuring browsers cache image, Javascript and/or CSS files without making additional unecessary requests when loading pages. Making sure mod_expires is enabled mod_expires may not be enabled by default in your Apache install. On a Debian based system (e.g. […]

person shubham sharmaaccess_time August 8, 2017launch Read More

PHP Caching Headers

Make sure a page is never cached with PHP To make sure the page is never cached (or whatever other dynamic content generated from PHP such as images, RSS files etc) add the following to the start of your script:

To set the amount of time to cache If instead you want the output […]

person shubham sharmaaccess_time August 8, 2017launch Read More

Read file from server

 

person shubham sharmaaccess_time July 25, 2017launch Read More

Admin AJAX

sctipt.js

 

person shubham sharmaaccess_time May 30, 2017launch Read More

prevent direct access

 

person shubham sharmaaccess_time April 1, 2017launch Read More

How to setup server to serve fonts (Allow any file in from one server to another server “Access-Control-Allow-Origin”)

back to help index In order to display fonts right, browser must receive font files with correct http headers. If server does not set required headers, some browsers can report errors in console or completely fail to display fonts. Probably, your server is already configured, and you don’t need to change anything. If not, you […]

person shubham sharmaaccess_time March 27, 2017launch Read More

Remove files and dir in PHP

 

person shubham sharmaaccess_time March 23, 2017launch Read More

How to zip a whole folder using PHP

Zip a whole folder:

  Zip a whole folder + delete all files except “important.txt”:

 

person shubham sharmaaccess_time March 3, 2017launch Read More

Test a URL response status

 

person shubham sharmaaccess_time February 8, 2017launch Read More