How to Deny access of Files and Folders through .htaccess File
How to restrict direct access of files and folders through .htaccess file. In this tutorial, I’ll discuss some .htaccess directives through which you can deny direct access of files and folders.
What is .htaccess File ?
.htaccess is a configuration file used by a web server (Apache). The fullform of htaccess is Hypertext Access. htaccess files are used to override server global configuration for the directory level in which you place this file.
Have you ever checked, How much memory your PHP script takes when it executes. In this tutorial, We’ll learn how to check memory usage by PHP script.
To check memory usage, PHP provides an inbuilt function memory_get_usage(). This function returns the amount of memory allocated to a PHP script.
What is Post Revision
In WordPress every time you update your post or wordpress Autosave your post content it creates a revision. Revisions is basically a history. It maintains the record what changes (content removed,added) you made in each revision.
What is Output Buffering
PHP sends data to your web browser as soon as it is ready – this might be line by line or in chunks. It makes your webpage slow and you have to maintain the order in which the data need to be sent. What Output buffering do is, It stores the data in buffer. It returns the data to the browser when buffer is flush. When buffer is flush then all the data is sent at once instead of chunks.
How to store and retrieve an array value in a cookie. Cookies can only store string values. You cannot store an array directly into a cookie. In this article, We’ll discuss how to store and retrieve an array value from a cookie.
My previous post related to Cookies.
1. How to create, read, update and delete a cookie in PHP
2. How to set a cookie on multiple subdomains