John18
03-02-2005, 10:01 AM
say if someone went to www.hello.com on a PDA. Is there a snippet of PHP code that will identify the PDA device and automatically redirect the user to a PDA friendly website? Thanks.
|
Click to See Complete Forum and Search --> : PDA friendly website redirection? John18 03-02-2005, 10:01 AM say if someone went to www.hello.com on a PDA. Is there a snippet of PHP code that will identify the PDA device and automatically redirect the user to a PDA friendly website? Thanks. NogDog 03-02-2005, 01:55 PM You might want to look at the get_browser() function (http://www.php.net/get-browser). Or, you could try parsing the $_SERVER['HTTP_USER_AGENT'] value. John18 03-02-2005, 05:15 PM sorry im a beginner at PHP... Could you perhaps write out the code that might work? Im interested to see if I can make a site that will redirect people with different devices e.g PDA. bokeh 03-02-2005, 08:01 PM You should really try to make all your pages accessible by all devices! Then if you want them to display in a particular way in a particular device you would write a different stylesheet for that device. John18 03-03-2005, 03:34 AM but what if the website has been built from scratch to be viewed from a small screen PDA? bokeh 03-03-2005, 04:18 AM I thought the idea of the web was to have as wide an audience as possible. John18 03-03-2005, 04:22 AM thats why ive built seperate websites designed for each different device...so everyone can view the web page. I just need a good redirection script. bokeh 03-03-2005, 05:58 AM You probably should use the same webpage but a different style sheet for PDAs. Any element that you consider might be problematic for the PDA you would hide using the PDA stylesheet. I know I am not answering your question directly and the truth is I don't know the answer (maybe someone else does) but the whole idea of stylesheets is they affect how the content is displayed, not the content itself. Are you saying you want different text for the PDAs? John18 03-03-2005, 06:25 AM well its a completely different information site so I dont know how a stylesheet could help... Its different navigation, images etc... webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |