WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

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
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 21st, 2004, 07:07 AM
Jox Jox is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 4 Jox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Questions about WML and PHP

1. I have a problem with WML. When I try to detect mobile phone with
PHP Code:
 get_browser() 
, there is no response. How to detect type of mobile phone?

2. When I use
PHP Code:
 session_start() 
in my PHP script, my emulator's (Openwave SDK 6.2.2) display is empty, and WinWAP display's an error message "Not WML content". What I do wrong?

3. Can I use JavaScript with WML like I am using PHP??

4. Can I (and how) use WAP Push with WML and PHP??

Thats all for now,

Thanks for any answers

Reply With Quote
  #2  
Old December 21st, 2004, 07:20 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,660 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 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 Months 3 Weeks 4 Days 1 h 21 m 33 sec
Reputation Power: 1618
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
Is browscap defined in your php.ini?
See the manualfor some more examples, also search these forums, there are some good examples how to do this stuff here. Good luck.
Comments on this post
vrspectre agrees!
__________________
Cheers,

Jamie


# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

# Any form of employment is strictly prohibited ......


__________________

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.

__________________

Reply With Quote
  #3  
Old December 25th, 2004, 09:22 AM
flyinghigh flyinghigh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 47 flyinghigh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m 12 sec
Reputation Power: 4
Client-side scripting for WML

WML supports a client-side script language called WMLScript. It is similar to JavaScript, but is less powerful.

Reply With Quote
  #4  
Old August 25th, 2005, 07:53 PM
visualtron visualtron is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 10 visualtron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 21 sec
Reputation Power: 0
Quote:
Originally Posted by Jox
1. I have a problem with WML. When I try to detect mobile phone with
PHP Code:
 get_browser() 
, there is no response. How to detect type of mobile phone?

2. When I use
PHP Code:
 session_start() 
in my PHP script, my emulator's (Openwave SDK 6.2.2) display is empty, and WinWAP display's an error message "Not WML content". What I do wrong?

3. Can I use JavaScript with WML like I am using PHP??

4. Can I (and how) use WAP Push with WML and PHP??

Thats all for now,

Thanks for any answers


You can't use WAP Push with WML and PHP. However, you can send a WAP Push SMS (SI or SL).

Last edited by jabba_29 : August 25th, 2005 at 08:25 PM. Reason: Fake signature removed

Reply With Quote
  #5  
Old May 5th, 2006, 05:27 PM
zondral zondral is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 1 zondral User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 51 sec
Reputation Power: 0
UserAgent

Quote:
Originally Posted by visualtron
You can't use WAP Push with WML and PHP. However, you can send a WAP Push SMS (SI or SL).


To detect mobile phone use header

example

$headers = getallheaders();
while (list($header, $value) = each($headers)) {
$encabezado .= "$header: $value\n";
if ( strtoupper($header) == "USER-AGENT" )
$USER = $value;
}

$USER has the model of your mobile phone

Reply With Quote
  #6  
Old May 6th, 2006, 03:21 AM
dtra dtra is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 446 dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 39 m 36 sec
Reputation Power: 12
or just
PHP Code:
 $userAgent $_SERVER['HTTP_USER_AGENT']; 


make sure to send the correct header to identify as a wml file
PHP Code:
 header("Content-type: text/vnd.wap.wml "); 

or
text/vnd.wap.wmlscript for wmlscript

at the top of your page

with the appropriate <?xml version="1.0" encoding="utf-8" ?> at the top of the page too

hth
dave
__________________
PHP MySQL Experimentation Site

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Questions about WML and PHP


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


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





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