View Single Post
Old 2008-08-25, 08:03 AM   #2
Jim
Banned
 
Jim's Avatar
 
Join Date: Aug 2003
Location: Mohawk, New York
Posts: 19,477
Quote:
Originally Posted by T Pat View Post
What's it take to view a video or picture that's on line with a cell phone
Do I simple have to have a separate size for cell phones?
Is there a way to send cell phone users to a page made for cell phones
Is there a script that sets everything up for you?
Option number 2, I believe Pat. It always pisses me off when I go to my bank and a few other places with my iphone and am redirected to a cell phone only site when the iphone doesn't need it.

I think this may be the code...

Code:
     
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>Test</title>
</head>
<body>

<?php
/* cell/pda browser detection */

if (strstr($_SERVER['HTTP_ACCEPT'], 'vnd.wap.xhtml'))
{
    echo "You are using a vnd.wap.xhtml WAP browser";
}
else if (strstr($_SERVER['HTTP_ACCEPT'], 'vnd.wap.wml'))
{
    echo "You are using a vnd.wap.wml WAP browser";
}
else
{
    echo "You are using a normal browser";
}

?>

</body>
</html>
Jim is offline   Reply With Quote