The phpinfo() function in php has a lot of uses. Before going to disable the phpinfo function, you must learn the basics of it. Here is the link which helps you to create the phpinfo –> phpinfo() What is phpinfo()…
.htaccess
Increase page loading speed – Leverage browser caching – .htaccess
How can I enable Leverage browser caching via .htaccess file? Leverage browser caching – It is a simple method to reduce the page loading time of a website for regular visitors. This technique is useful to speedup pages for websites…
How to enable allow_url_fopen, allow_url_include on a shared server using custom php.ini
How to enable allow_url_fopen, allow_url_include? You can simply enable/disable the php functions allow_url_include and allow_url_fopen by editing the php configuration file. These functions may disabled in the php configuration file of some shared hosting server. You can simply manage these…
How to change document root of a website using .htaccess
[sg_popup id=”2″ event=”onload”][/sg_popup]How to change document root? This will help if you want to change the document root of you website from the default location. By default the document root of your website on a cPanel based server is /home/$username/public_html…
How can a user run a .cgi script outside the cgi-bin directory?
What does CGI mean? Common Gateway Interface is abbreviated to CGI. This is a standard way for web servers to interface executable scripts with end users. Those executable scripts or programs execute by this way and generate web pages dynamically.…
http to https redirection using .htaccess file
Is it possible? Yep, we can redirect the non SSL query to your website to SSL port by using .htaccess file in the website’s public folder. If the file is not there, go ahead and simply create it. This will…
.htaccess rules for not executing php in images folder
Add the following code in your .htaccess file in images folder for not to execute PHP in images folder: order allow,deny deny from all # secure directory by disabling script execution AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml…