The Mobile Web

Mobile Web can now be viewed on the mobile web. I added code to remove all sidebars and to remove the header image. To remove the images in the posts use the settings on your phone. If your mobile device is not recognized by my code, go to the following URL and send me the HTTP_USER_AGENT information the page displays, and I will correct it.

I created the following PHP function to determine which layout to use in my code:

function is_mobile() {
if (!isset($_SERVER[“HTTP_USER_AGENT”])) {
return false;
$whitelist = array(
‘Stand Alone/QNws’
foreach ($whitelist as $browser) {
if (strstr($_SERVER[“HTTP_USER_AGENT”], $browser)) {
return false;
$small_browsers = array(
‘2.0 MMP’
,’Opera Mini’
,’Symbian OS’
,’Windows CE’
foreach ($small_browsers as $browser) {
if (strstr($_SERVER[“HTTP_USER_AGENT”], $browser)) {
return true;
return false;

Leave a Reply

Your email address will not be published. Required fields are marked *