Quote:
Originally Posted by T Pat
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>