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.
Recursion vs Iteration. What’s the difference between recursion and iteration. Recursion and Iteration both are two different programming approaches. In some cases recursion is best suited and in some other cases iterative way of programming is good.
In programming, repeated set of instructions can be handled either by using recursive or iterative approach in your code. So which approach you choose and why. Let’s talk about recursion vs iteration.
Binary Search using Recursion in C
Four people need to cross a bridge at night and they have one torch. The bridge can handle the load of only two people at a time. Person A can take 10 minutes, B takes 7 minutes, C takes 2 minutes and D takes 1 minute to cross the bridge. When two people cross the bridge together, they must move at the slower person’s pace. What’s the minimum time taken by four of them to cross the bridge.
Minification is the process to remove all spaces,comments,characters
You have two jugs of capacity 3L and 5L. There is no measurement lines on jug. You need to measure 4L water using 3L and 5L jug. You can use extra water as much as you need. This is one of the favourite interview question asked by interviewer to check how you think.
How to increase file size import limit in phpMyAdmin. This is the common question asked by most of the people that, I get an error message when I am importing a file more than 2MB using phpMyAdmin.
I assume you have LAMP and phpMyAdmin installed on your system and your importing MySql database.
In your default setting, you’ll get following error message when you try to upload a file more than 2MB.
Error : No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration…
How to remove www from url through htaccess. Suppose, if a user type http://www.example.com (example is the name of your domain) in their browser, you can automatically redirect them to http://example.com.
For website SEO (Search Engine Optimization) purpose, it is necessary that your blog or website either respond to http://www.example.com or http://example.com, but not both. Otherwise, search engines see duplicate content on the www and non-www domains, and may downgrade the site ranking.
In my previous posts, I have explained htaccess file and their importance. In this post, We will learn how to remove www from url through htaccess.
How to install MySql workbench on Ubuntu.
MySql is one of the most used databases worldwide. To manage MySql database there are a lot of open source GUI tools are available. Some of the popular GUI based tools is MySql workbench, phpMyAdmin etc. In this tutorial, you’ll learn how to install MySql workbench on Ubuntu.
MySQL Workbench is a GUI-based visual tool. Workbench is widely used by developers, DBAs for data modeling, SQL development, and comprehensive administration tools for server configuration, user administration, backup, and much more. This tool is available for Windows, Linux and Mac OS operating system.
In this article, I’ll show how you can install MySql workbench on Ubuntu.
How to Install and Remove phpMyAdmin on Ubuntu.
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.