PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old June 12th, 2007, 04:02 AM
jaceline jaceline is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 1 jaceline User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 54 sec
Reputation Power: 0
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!

Reply With Quote
  #2  
Old June 13th, 2007, 06:04 AM
codermonk codermonk is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 1 codermonk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 7 m 34 sec
Reputation Power: 0
Question

Quote:
Originally Posted by jaceline
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!


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

Reply With Quote
  #3  
Old June 13th, 2007, 06:31 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,719 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 4 m 29 sec
Reputation Power: 6
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

Reply With Quote
  #4  
Old June 13th, 2007, 10:53 PM
jabba_29 jabba_29 is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 jabba_29 User rank is Just a Lowly Private (1 - 20 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 h 49 m 16 sec
Reputation Power: 0
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP Redirect Browser


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway