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

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

Social Feed

Twitter

 

  Facebook

 

person shubham sharmaaccess_time December 15, 2016launch Read More

PHP date standard format

  The strtotime() function parses an English textual datetime into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 GMT). Note: If the year is specified in a two-digit format, values between 0-69 are mapped to 2000-2069 and values between 70-100 are mapped to 1970-2000. Note: Be aware of dates in […]

person shubham sharmaaccess_time December 7, 2016launch Read More