Download a file without showing its original URL

We can download a file from internet without showing its original url or in other sense, we can change the download link. here is the small php code that can download file by changing the url. <?php $url = ‘URL_HERE’; header(“Content-Type: application/force-download”); @readfile($url); ?>

Read More

A Universal .htaccess script

This is a universal htaccess script, that can rewrite your non www to www and not https to http. This script supports all type of domain. Also this script has caching enable for the clients side. I used this script for every domain in which I have to rewrite domain.   Options All -Indexes RewriteEngine […]

Read More

Using MongoDB with PHP

To use MongoDB with PHP, you need to use MongoDB PHP driver. Download the driver from the url Download PHP Driver. Make sure to download the latest release of it. Now unzip the archive and put php_mongo.dll in your PHP extension directory (“ext” by default) and add the following line to your php.ini file − extension […]

Read More