Archive for 'how to'

Browser Detection using PHP Browscap

Requirement latest browscap.ini from Gary Keith’s site download Jonathan Stoppani’s browscap.ini parser create a folder called cache as Browscap.php will store information for quick access in the folder. The Code <?php require(‘Browscap.php’); $bc = new Browscap(‘cache’); $bc->localFile = ‘php_browscap.ini’; $data = $bc->getBrowser(); print_r($data); ?> Finally, access $data as an object echo $data->Browser; Source taken from http://www.evanbot.com/article/php-browscap/19

How to solve website encoding problem for html?

If you ever encounter problem where your website can’t display the unicode character properly even you have added <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ /> in your html files, please try to add following line to your htaccess. AddType application/x-httpd-php .html This should work then.

How to internal redirect .php files to .html files?

Redirects all files that end in .html to be served from filename.php  so it looks like all your pages are .html but really they are .php Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule ^(.*)\.html$ $1.php [R=301,L]

American Graffiti download divx The Gold Rush download movie Mutant Aliens download movie The X Files download movie Flirting with Forty download movie Gangland download movie The Gold Rush download movie Mutant Aliens download movie The X Files download movie Flirting with Forty download movie Gangland download movie