How to deny access to files, folders through htaccess file. In this tutorial, We are going to learn .htaccess directives through which we can deny direct access to files and folders.
How to Deny Access to Files, Folders through htaccess
What is .htaccess File?
.htaccess is a configuration file used by a web server (Apache). The full form of htaccess is Hypertext Access. Htaccess files are used to override server global configuration for the directory level in which you place this file.
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