|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP Redirect Browser
Hi! I'm newbie here. I have installed PHP 5.2.3 and tried out the method to redirect the HTML browser and WML browser using PHP code. I have followed the guidelines given one by one for the PHP installation and modified those necessary settings for detecting WML browsers. The problem I'm facing right now is when I try to browse my php application, I'm unable to redirect to wmlredirect link when browsing using mobile and pda. If I'm using PC browser, it will redirect me to the htmlredirect browser. Is it something wrong with the setting during installation or we can't browse PHP application using mobile and PDA? Please advise. Thanks in advance!
|
|
#2
|
|||
|
|||
|
Quote:
Hi, When you say you have followed the guidlines and modified the necessary settings, did you find this information in a particular article or site on the Internet? If you did, what is the link to this and what settings did you modify in your setup? Mark H |
|
#3
|
||||
|
||||
|
I personally haven't done this but why try and handle it through the php setup - why not logically build it into the script? check your OS (See $_SERVER['HTTP_USER_AGENT']) if it isn't one of the major ones (mozilla, IE, opera or safari) - display the WAP templates instead of the HTML (or redirect if that is what you need).
Not perfect by any means - but workable.
__________________
life is a game.... Have fun ----------------------------- http://www.phpwomen.org strength in unity PHPCommunity IRC #phpc on freenode |
|
#4
|
|||
|
|||
|
I am confused as to how this is related to setup -
unless you are trying to this with Apache? There are a number of scripts available out there that can do this kind of stuff. I wrote a little script that is a stand alone version of a module used in Drupal... see my homepage for the script (forum is blocking URLs) It does detection in 2 ways: 1) checks whether device is a mobile or not 2) checks the best suited content type, ie text/vnd.wap.wml HTH. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHP Redirect Browser |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|