Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:05 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc