Loading ...
Sorry, an error occurred while loading the content.

RE: RE: [wmlprogramming] Simple WURFL example

Expand Messages
  • Adam D
    Yep Im using the opeware browser for testing could this be the problem ? ive looked for your php emu but cant find the download anywhere adam ... From: Andrea
    Message 1 of 2 , Mar 5, 2004
    • 0 Attachment
      Yep

      Im using the opeware browser for testing could this be the problem ? ive
      looked for your php emu but cant find the download anywhere

      adam

      -----Original Message-----
      From: Andrea [mailto:andrea@...]
      Sent: 05 March 2004 13:16
      To: wmlprogramming@yahoogroups.com
      Subject: Rv: RE: [wmlprogramming] Simple WURFL example

      Do you have register_globals=On ?

      --------- Messaggio Originale --------
      Da: wmlprogramming@yahoogroups.com
      Per: wmlprogramming@yahoogroups.com <wmlprogramming@yahoogroups.com>
      Oggetto: RE: [wmlprogramming] Simple WURFL example
      Data: 05/03/04 13:15

      >
      > Anyone any suggestions as to why this isn't working ?
      >
      > Help much appreciatd
      >
      > adam
      >
      > -----Original Message-----
      > From: Adam D [mailto:adam@...]
      > Sent: 04 March 2004 11:50
      > To: wmlprogramming@yahoogroups.com
      > Subject: [wmlprogramming] Simple WURFL example
      >
      > Ive setup my server and have a directory which contains :
      >
      > /wurfl_class.php
      > /wurfl_parser.php
      > /wurfl.xml
      > /index.php
      >
      > Where index.php Is the example from the wurlf homepage :
      >
      > <?php
      > // WURFL demo by "Andrea Trasatti" <trasatti@...>
      >
      > require_once('./wurfl_class.php');
      > // creating the WURFL object
      > $myDevice = new wurfl_class($HTTP_USER_AGENT);
      > if ( $myDevice->browser_is_wap ) {
      > header("Content-Type: text/vnd.wap.wml");
      > echo '<?xml version="1.0"
      encoding="ISO-8859-1"?>'."n";
      > ?>
      > <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
      > "http://www.wapforum.org//DTD//wml_1.1.xml">
      > <wml>
      > <card>
      > <p mode="nowrap">
      >
      > <?php
      > if ( $myDevice->getDeviceCapability('gif') ) {
      > echo '<img src="logo.gif" alt="Global TEL"
      />'."n";
      > } else {
      > echo '<img src="logo.wbmp" alt="Global TEL"
      />'."n<br/>n";
      > }
      > ?>
      >
      > <a href="index.php">Home</a><br/>
      > </p>
      > </card>
      > </wml>
      >
      > <?php
      > } else {
      > ?>
      > <img src="logo.gif"><br><br>
      > Welcome Web browser.<br>
      > We are sorry, but we are only offering WAP services, at this
      time.<br>
      > <?php } ?>
      >
      > Ive tried it on opeware browser and phone and all I get is error
      > Notice: Undefined variable: HTTP_USER_AGENT in F:wapwurflindex.php on
      > line 6
      >
      > Is there something im missing ?
      >
      > adam
      >
      >
      >
      > Please read the FAQ before you ask questions:
      http://www.thewirelessfaq.com
      >
      > Visit http://groups.yahoo.com/group/wmlprogramming for archive and
      > subscription options
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >
      >
      > Please read the FAQ before you ask questions:
      http://www.thewirelessfaq.com
      >
      > Visit http://groups.yahoo.com/group/wmlprogramming for archive and
      subscription options
      > Yahoo! Groups Links
      >
      > <*> To visit your group on the web, go to:
      > http://groups.yahoo.com/group/wmlprogramming/
      >
      > <*> To unsubscribe from this group, send an email to:
      > wmlprogramming-unsubscribe@yahoogroups.com
      >
      > <*> Your use of Yahoo! Groups is subject to:
      > http://docs.yahoo.com/info/terms/
      >
      >
      >
      >
      >
      >
      >
      >

      ________________________________________________




      Please read the FAQ before you ask questions: http://www.thewirelessfaq.com

      Visit http://groups.yahoo.com/group/wmlprogramming for archive and
      subscription options
      Yahoo! Groups Links
    Your message has been successfully submitted and would be delivered to recipients shortly.