|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
Questions about WML and PHP
1. I have a problem with WML. When I try to detect mobile phone with
PHP Code:
2. When I use PHP Code:
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 |
|
#2
|
||||
|
||||
|
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.
__________________
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. __________________ |
|
#3
|
|||
|
|||
|
Client-side scripting for WML
WML supports a client-side script language called WMLScript. It is similar to JavaScript, but is less powerful.
|
|
#4
|
|||
|
|||
|
Quote:
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 |
|
#5
|
|||
|
|||
|
UserAgent
Quote:
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 |
|
#6
|
|||
|
|||
|
or just
PHP Code:
make sure to send the correct header to identify as a wml file PHP Code:
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Questions about WML and PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|