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

wall4php and new APIS

Expand Messages
  • Juanto Romang
    Sending again this email but now with the correct subject (last time I forgot to change it). Hi I m new on this list and on mobile programming. I have a system
    Message 1 of 30 , Sep 30, 2009
    View Source
    • 0 Attachment

      Sending again this email but now with the correct subject (last time I forgot to change it).

       

      Hi I'm new on this list and on mobile programming.
       
      I have a system working with the old PHP API and wall4php, but now I would like to update the PHP API or Tera-WURFL to the new ones and continue working with wall4php.

      Is it possible?

       

      I modified some of the wall4php functionalities, later will try to describe what new things I added and if someone is interested I can send it.

       

      Thanks

      Juanto

       

    • ajck73
      Well, I m using the new TeraWURFL 2.0 RC2 with the old Wall4PHP and the latest web patches and wurfl.xml and it all seems to work fine. I had to make a very
      Message 2 of 30 , Oct 13, 2009
      View Source
      • 0 Attachment
        Well, I'm using the new TeraWURFL 2.0 RC2 with the old Wall4PHP and the latest web patches and wurfl.xml and it all seems to work fine. I had to make a very minor change to the wall4php code, I can let you know what exactly if you are stuck :)

        Cheers
        Alex

        --- In wmlprogramming@yahoogroups.com, "Juanto Romang" <jtromang@...> wrote:
        >
        > Sending again this email but now with the correct subject (last time I
        > forgot to change it).
        >
        >
        >
        > Hi I'm new on this list and on mobile programming.
        >
        > I have a system working with the old PHP API and wall4php, but now I would
        > like to update the PHP API or Tera-WURFL to the new ones and continue
        > working with wall4php.
        >
        > Is it possible?
        >
        >
        >
        > I modified some of the wall4php functionalities, later will try to describe
        > what new things I added and if someone is interested I can send it.
        >
        >
        >
        > Thanks
        >
        > Juanto
        >
      • wYke
        can you share it? ideas/guide/zip file.. i am looking to do this myself but lacking directions..
        Message 3 of 30 , Oct 13, 2009
        View Source
        • 0 Attachment
          can you share it? ideas/guide/zip file.. i am looking to do this myself but lacking directions..

          --- In wmlprogramming@yahoogroups.com, "ajck73" <alex@...> wrote:
          >
          > Well, I'm using the new TeraWURFL 2.0 RC2 with the old Wall4PHP and the latest web patches and wurfl.xml and it all seems to work fine. I had to make a very minor change to the wall4php code, I can let you know what exactly if you are stuck :)
          >
          > Cheers
          > Alex
          >
          > --- In wmlprogramming@yahoogroups.com, "Juanto Romang" <jtromang@> wrote:
          > >
          > > Sending again this email but now with the correct subject (last time I
          > > forgot to change it).
          > >
          > >
          > >
          > > Hi I'm new on this list and on mobile programming.
          > >
          > > I have a system working with the old PHP API and wall4php, but now I would
          > > like to update the PHP API or Tera-WURFL to the new ones and continue
          > > working with wall4php.
          > >
          > > Is it possible?
          > >
          > >
          > >
          > > I modified some of the wall4php functionalities, later will try to describe
          > > what new things I added and if someone is interested I can send it.
          > >
          > >
          > >
          > > Thanks
          > >
          > > Juanto
          > >
          >
        • Juanto Romang
          It would be great if you can let us know what are the things to change. I m still using the old files, cause I didn t have time to mess with the code to make
          Message 4 of 30 , Oct 13, 2009
          View Source
          • 0 Attachment

            It would be great if you can let us know what are the things to change.

            I’m still using the old files, cause I didn’t have time to mess with the code to make things work.

             

            Thanks in advance.

            Juanto

             

             

            De: wmlprogramming@yahoogroups.com [mailto:wmlprogramming@yahoogroups.com] En nombre de ajck73
            Enviado el: martes, 13 de octubre de 2009 01:10 p.m.
            Para: wmlprogramming@yahoogroups.com
            Asunto: [wmlprogramming] Re: wall4php and new APIS

             

             

            Well, I'm using the new TeraWURFL 2.0 RC2 with the old Wall4PHP and the latest web patches and wurfl.xml and it all seems to work fine. I had to make a very minor change to the wall4php code, I can let you know what exactly if you are stuck :)

            Cheers
            Alex

            --- In wmlprogramming@yahoogroups.com, "Juanto Romang" <jtromang@...> wrote:

            >
            > Sending again this email but now with the correct subject (last time I
            > forgot to change it).
            >
            >
            >
            > Hi I'm new on this list and on mobile programming.
            >
            > I have a system working with the old PHP API and wall4php, but now I would
            > like to update the PHP API or Tera-WURFL to the new ones and continue
            > working with wall4php.
            >
            > Is it possible?
            >
            >
            >
            > I modified some of the wall4php functionalities, later will try to
            describe
            > what new things I added and if someone is interested I can send it.
            >
            >
            >
            > Thanks
            >
            > Juanto
            >

          • Steve Kamerman
            I m working on RC3 tonight - I ve changed all the short_open_tag uses in the code so you no longer need to have that option turned on in PHP. I ve also added
            Message 5 of 30 , Oct 17, 2009
            View Source
            • 0 Attachment
              I'm working on RC3 tonight - I've changed all the short_open_tag uses in the code so you no longer need to have that option turned on in PHP.  I've also added a cache browser that lets you see what devices are in your cache and all their capabilities.  I'm working on the WALL4PHP compatibility right now - can you tell me exactly what you needed to change?

              Thanks,

              Steve Kamerman

              On Tue, Oct 13, 2009 at 1:31 PM, Juanto Romang <jtromang@...> wrote:
               

              It would be great if you can let us know what are the things to change.

              I’m still using the old files, cause I didn’t have time to mess with the code to make things work.

               

              Thanks in advance.

              Juanto

               

               

              De: wmlprogramming@yahoogroups.com [mailto:wmlprogramming@yahoogroups.com] En nombre de ajck73
              Enviado el: martes, 13 de octubre de 2009 01:10 p.m.
              Para: wmlprogramming@yahoogroups.com
              Asunto: [wmlprogramming] Re: wall4php and new APIS

               

               

              Well, I'm using the new TeraWURFL 2.0 RC2 with the old Wall4PHP and the latest web patches and wurfl.xml and it all seems to work fine. I had to make a very minor change to the wall4php code, I can let you know what exactly if you are stuck :)

              Cheers
              Alex

              --- In wmlprogramming@yahoogroups.com, "Juanto Romang" <jtromang@...> wrote:
              >
              > Sending again this email but now with the correct subject (last time I
              > forgot to change it).
              >
              >
              >
              > Hi I'm new on this list and on mobile programming.
              >
              > I have a system working with the old PHP API and wall4php, but now I would
              > like to update the PHP API or Tera-WURFL to the new ones and continue
              > working with wall4php.
              >
              > Is it possible?
              >
              >
              >
              > I modified some of the wall4php functionalities, later will try to describe
              > what new things I added and if someone is interested I can send it.
              >
              >
              >
              > Thanks
              >
              > Juanto
              >


            • david_salgado8
              Hi Steve ... Assuming they re the same changes I had to make to integrate Terawurfl 2 and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php Below is a
              Message 6 of 30 , Oct 18, 2009
              View Source
              • 0 Attachment
                Hi Steve

                > I'm working on RC3 tonight - I've changed all the short_open_tag uses in the
                > code so you no longer need to have that option turned on in PHP. I've also
                > added a cache browser that lets you see what devices are in your cache and
                > all their capabilities. I'm working on the WALL4PHP compatibility right now
                > - can you tell me exactly what you needed to change?

                Assuming they're the same changes I had to make to integrate Terawurfl 2 and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php

                Below is a patch for the changes I had to make. NB: I took out the conditional logic, so the patch below only works as is if you're using Terawurfl.

                All the best

                David



                diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
                index 6efa4ea..a131b73 100644
                --- a/www/Wall4PHP-1.1/Wall.php
                +++ b/www/Wall4PHP-1.1/Wall.php
                @@ -92,11 +92,7 @@ class Wall {
                $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] : getenv('HTTP_USER_AGENT');
                }
                require_once(WURFL_CLASS_FILE);
                - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                - $this->wurfl = new tera_wurfl();
                - } else {
                - $this->wurfl = new wurfl_class();
                - }
                + $this->wurfl = new TeraWurfl();
                $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                ob_start(Array($this, '_obCallBack'));
                register_shutdown_function(Array($this, '_obEndFlush'));
                diff --git a/www/Wall4PHP-1.1/wall_prepend.php b/www/Wall4PHP-1.1/wall_prepend.php
                index 2753bfe..c5894be 100644
                --- a/www/Wall4PHP-1.1/wall_prepend.php
                +++ b/www/Wall4PHP-1.1/wall_prepend.php
                @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                # Notice: Constant LOG_LEVEL already defined in [..path..]/wurfl/wurfl_class.php on line 89
                ### define('LOG_LEVEL', 0);

                - # Shall we use classic PHP Tools or Tera WURFL?
                - define('WALL_USE_TERA_WURFL', false);
                -
                - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
                - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                - require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                - } else {
                - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
                - }
                + # Configuration of Tera WURFL by Steve Kamerman
                + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');

                # For debug purporses. If you see following line uncommented, delete it or comment
                # it out. This is needed only, if Wall.php and Wall directory resides outside
                @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                $wall = new Wall();

                }
                -?>
                \ No newline at end of file
                +?>
              • ajck73
                This reply is effectively repeating what David (thanks David!) just wrote (I think - I haven t checked his code) but it may be a littler clearer for some?
                Message 7 of 30 , Oct 19, 2009
                View Source
                • 0 Attachment
                  This reply is effectively repeating what David (thanks David!) just wrote (I think - I haven't checked his code) but it may be a littler clearer for some?
                  Juanto emailed me direct and this was my reply to him:

                  There are a couple of small changes required. First install the Wall4PHP version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can get from the terawurfl site. Then install TeraWURFL RC2 from the terawurfl site. Then in the Wall4php code make the following changes:

                  1.) In Wall.php at line 94 you need to comment out the line, so it looks like:

                  // require_once(WURFL_CLASS_FILE);


                  2.) Also in Wall.php at line 96 you need to change the line that says (it's case sensitive by the way):

                  $this->wurfl = new tera_wurfl();

                  to look like this:

                  $this->wurfl = new TeraWurfl();

                  3.) In wall_prepend.php, lines 15 and 16 currently look like:

                  if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {

                  require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');

                  so you just need to change line 16 so it points to the new tera wurfl config file, like this:

                  require_once('/var/www/html/terawurfl2/TeraWurfl.php');

                  where the subdirectory /var/www/html/terawurfl2/ is where ever you have installed TeraWurfl 2 on your system.

                  and obviously line 12 in wall_prepend.php should already say:

                  define('WALL_USE_TERA_WURFL', true);

                  Think that's it - all the other commands, functions etc should work the same.

                  Alex

                  --- In wmlprogramming@yahoogroups.com, "david_salgado8" <david@...> wrote:
                  >
                  > Hi Steve
                  >
                  > > I'm working on RC3 tonight - I've changed all the short_open_tag uses in the
                  > > code so you no longer need to have that option turned on in PHP. I've also
                  > > added a cache browser that lets you see what devices are in your cache and
                  > > all their capabilities. I'm working on the WALL4PHP compatibility right now
                  > > - can you tell me exactly what you needed to change?
                  >
                  > Assuming they're the same changes I had to make to integrate Terawurfl 2 and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
                  >
                  > Below is a patch for the changes I had to make. NB: I took out the conditional logic, so the patch below only works as is if you're using Terawurfl.
                  >
                  > All the best
                  >
                  > David
                  >
                  >
                  >
                  > diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
                  > index 6efa4ea..a131b73 100644
                  > --- a/www/Wall4PHP-1.1/Wall.php
                  > +++ b/www/Wall4PHP-1.1/Wall.php
                  > @@ -92,11 +92,7 @@ class Wall {
                  > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] : getenv('HTTP_USER_AGENT');
                  > }
                  > require_once(WURFL_CLASS_FILE);
                  > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                  > - $this->wurfl = new tera_wurfl();
                  > - } else {
                  > - $this->wurfl = new wurfl_class();
                  > - }
                  > + $this->wurfl = new TeraWurfl();
                  > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                  > ob_start(Array($this, '_obCallBack'));
                  > register_shutdown_function(Array($this, '_obEndFlush'));
                  > diff --git a/www/Wall4PHP-1.1/wall_prepend.php b/www/Wall4PHP-1.1/wall_prepend.php
                  > index 2753bfe..c5894be 100644
                  > --- a/www/Wall4PHP-1.1/wall_prepend.php
                  > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                  > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                  > # Notice: Constant LOG_LEVEL already defined in [..path..]/wurfl/wurfl_class.php on line 89
                  > ### define('LOG_LEVEL', 0);
                  >
                  > - # Shall we use classic PHP Tools or Tera WURFL?
                  > - define('WALL_USE_TERA_WURFL', false);
                  > -
                  > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
                  > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                  > - require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                  > - } else {
                  > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
                  > - }
                  > + # Configuration of Tera WURFL by Steve Kamerman
                  > + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');
                  >
                  > # For debug purporses. If you see following line uncommented, delete it or comment
                  > # it out. This is needed only, if Wall.php and Wall directory resides outside
                  > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                  > $wall = new Wall();
                  >
                  > }
                  > -?>
                  > \ No newline at end of file
                  > +?>
                  >
                • Juanto Romang
                  Alex I tested this fix and it s working. Thanks De: wmlprogramming@yahoogroups.com [mailto:wmlprogramming@yahoogroups.com] En nombre de ajck73 Enviado el:
                  Message 8 of 30 , Oct 19, 2009
                  View Source
                  • 0 Attachment

                    Alex I tested this fix and it’s working.

                    Thanks

                     

                     

                    De: wmlprogramming@yahoogroups.com [mailto:wmlprogramming@yahoogroups.com] En nombre de ajck73
                    Enviado el: lunes, 19 de octubre de 2009 01:57 p.m.
                    Para: wmlprogramming@yahoogroups.com
                    Asunto: [wmlprogramming] Re: wall4php and new APIS

                     

                     



                    This reply is effectively repeating what David (thanks David!) just wrote (I think - I haven't checked his code) but it may be a littler clearer for some?
                    Juanto emailed me direct and this was my reply to him:

                    There are a couple of small changes required. First install the Wall4PHP version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can get from the terawurfl site. Then install TeraWURFL RC2 from the terawurfl site. Then in the Wall4php code make the following changes:

                    1.) In Wall.php at line 94 you need to comment out the line, so it looks like:

                    // require_once(WURFL_CLASS_FILE);

                    2.) Also in Wall.php at line 96 you need to change the line that says (it's case sensitive by the way):

                    $this->wurfl = new tera_wurfl();

                    to look like this:

                    $this->wurfl = new TeraWurfl();

                    3.) In wall_prepend.php, lines 15 and 16 currently look like:

                    if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {

                    require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');

                    so you just need to change line 16 so it points to the new tera wurfl config file, like this:

                    require_once('/var/www/html/terawurfl2/TeraWurfl.php');

                    where the subdirectory /var/www/html/terawurfl2/ is where ever you have installed TeraWurfl 2 on your system.

                    and obviously line 12 in wall_prepend.php should already say:

                    define('WALL_USE_TERA_WURFL', true);

                    Think that's it - all the other commands, functions etc should work the same.

                    Alex

                    --- In wmlprogramming@yahoogroups.com, "david_salgado8" <david@...> wrote:

                    >
                    > Hi Steve
                    >
                    > > I'm working on RC3 tonight - I've changed all the short_open_tag uses
                    in the
                    > > code so you no longer need to have that option turned on in PHP. I've
                    also
                    > > added a cache browser that lets you see what devices are in your
                    cache and
                    > > all their capabilities. I'm working on the WALL4PHP compatibility
                    right now
                    > > - can you tell me exactly what you needed to change?
                    >
                    > Assuming they're the same changes I had to make to integrate Terawurfl 2
                    and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
                    >
                    > Below is a patch for the changes I had to make. NB: I took out the
                    conditional logic, so the patch below only works as is if you're using Terawurfl.
                    >
                    > All the best
                    >
                    > David
                    >
                    >
                    >
                    > diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
                    > index 6efa4ea..a131b73 100644
                    > --- a/www/Wall4PHP-1.1/Wall.php
                    > +++ b/www/Wall4PHP-1.1/Wall.php
                    > @@ -92,11 +92,7 @@ class Wall {
                    > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] : getenv('HTTP_USER_AGENT');
                    > }
                    > require_once(WURFL_CLASS_FILE);
                    > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                    > - $this->wurfl = new tera_wurfl();
                    > - } else {
                    > - $this->wurfl = new wurfl_class();
                    > - }
                    > + $this->wurfl = new TeraWurfl();
                    > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                    > ob_start(Array($this, '_obCallBack'));
                    > register_shutdown_function(Array($this, '_obEndFlush'));
                    > diff --git a/www/Wall4PHP-1.1/wall_prepend.php b/www/Wall4PHP-1.1/wall_prepend.php
                    > index 2753bfe..c5894be 100644
                    > --- a/www/Wall4PHP-1.1/wall_prepend.php
                    > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                    > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                    > # Notice: Constant LOG_LEVEL already defined in [..path..]/wurfl/wurfl_class.php
                    on line 89
                    > ### define('LOG_LEVEL', 0);
                    >
                    > - # Shall we use classic PHP Tools or Tera WURFL?
                    > - define('WALL_USE_TERA_WURFL', false);
                    > -
                    > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
                    > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                    > - require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                    > - } else {
                    > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
                    > - }
                    > + # Configuration of Tera WURFL by Steve Kamerman
                    > + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');
                    >
                    > # For debug purporses. If you see following line uncommented, delete it or
                    comment
                    > # it out. This is needed only, if Wall.php and Wall directory resides
                    outside
                    > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                    > $wall = new Wall();
                    >
                    > }
                    > -?>
                    > \ No newline at end of file
                    > +?>
                    >

                  • Steve Kamerman
                    Hi all, sorry I haven t posted RC3 yet - our training has been ramping up pretty heavy and we only have an hour or two per day to ourselves. Once I get into
                    Message 9 of 30 , Oct 19, 2009
                    View Source
                    • 0 Attachment
                      Hi all, sorry I haven't posted RC3 yet - our training has been ramping up pretty heavy and we only have an hour or two per day to ourselves.  Once I get into Iraq I'm sure I will have much more free time!  The new version fixes a couple bugs and has a cache browser that allows you to see what devices are hitting your site and their capabilities.  I'll try to get it up on the site tomorrow if I have time.

                      Thanks,

                      Steve Kamerman

                      On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@...> wrote:
                       



                      This reply is effectively repeating what David (thanks David!) just wrote (I think - I haven't checked his code) but it may be a littler clearer for some?
                      Juanto emailed me direct and this was my reply to him:

                      There are a couple of small changes required. First install the Wall4PHP version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can get from the terawurfl site. Then install TeraWURFL RC2 from the terawurfl site. Then in the Wall4php code make the following changes:

                      1.) In Wall.php at line 94 you need to comment out the line, so it looks like:

                      // require_once(WURFL_CLASS_FILE);

                      2.) Also in Wall.php at line 96 you need to change the line that says (it's case sensitive by the way):



                      $this->wurfl = new tera_wurfl();

                      to look like this:

                      $this->wurfl = new TeraWurfl();

                      3.) In wall_prepend.php, lines 15 and 16 currently look like:


                      if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {

                      require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');

                      so you just need to change line 16 so it points to the new tera wurfl config file, like this:

                      require_once('/var/www/html/terawurfl2/TeraWurfl.php');

                      where the subdirectory /var/www/html/terawurfl2/ is where ever you have installed TeraWurfl 2 on your system.

                      and obviously line 12 in wall_prepend.php should already say:

                      define('WALL_USE_TERA_WURFL', true);

                      Think that's it - all the other commands, functions etc should work the same.

                      Alex


                      --- In wmlprogramming@yahoogroups.com, "david_salgado8" <david@...> wrote:
                      >
                      > Hi Steve
                      >
                      > > I'm working on RC3 tonight - I've changed all the short_open_tag uses in the
                      > > code so you no longer need to have that option turned on in PHP. I've also
                      > > added a cache browser that lets you see what devices are in your cache and
                      > > all their capabilities. I'm working on the WALL4PHP compatibility right now
                      > > - can you tell me exactly what you needed to change?
                      >
                      > Assuming they're the same changes I had to make to integrate Terawurfl 2 and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
                      >
                      > Below is a patch for the changes I had to make. NB: I took out the conditional logic, so the patch below only works as is if you're using Terawurfl.
                      >
                      > All the best
                      >
                      > David
                      >
                      >
                      >
                      > diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
                      > index 6efa4ea..a131b73 100644
                      > --- a/www/Wall4PHP-1.1/Wall.php
                      > +++ b/www/Wall4PHP-1.1/Wall.php
                      > @@ -92,11 +92,7 @@ class Wall {
                      > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] : getenv('HTTP_USER_AGENT');
                      > }
                      > require_once(WURFL_CLASS_FILE);
                      > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                      > - $this->wurfl = new tera_wurfl();
                      > - } else {
                      > - $this->wurfl = new wurfl_class();
                      > - }
                      > + $this->wurfl = new TeraWurfl();
                      > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                      > ob_start(Array($this, '_obCallBack'));
                      > register_shutdown_function(Array($this, '_obEndFlush'));
                      > diff --git a/www/Wall4PHP-1.1/wall_prepend.php b/www/Wall4PHP-1.1/wall_prepend.php
                      > index 2753bfe..c5894be 100644
                      > --- a/www/Wall4PHP-1.1/wall_prepend.php
                      > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                      > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                      > # Notice: Constant LOG_LEVEL already defined in [..path..]/wurfl/wurfl_class.php on line 89
                      > ### define('LOG_LEVEL', 0);
                      >
                      > - # Shall we use classic PHP Tools or Tera WURFL?
                      > - define('WALL_USE_TERA_WURFL', false);
                      > -
                      > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
                      > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                      > - require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                      > - } else {
                      > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
                      > - }
                      > + # Configuration of Tera WURFL by Steve Kamerman
                      > + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');
                      >
                      > # For debug purporses. If you see following line uncommented, delete it or comment
                      > # it out. This is needed only, if Wall.php and Wall directory resides outside
                      > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                      > $wall = new Wall();
                      >
                      > }
                      > -?>
                      > \ No newline at end of file
                      > +?>
                      >


                    • s3thj
                      I thought I d give this a try and upgrade my ol Wall4PHP to RC5. I feel like I missed something cause I didn t get far. I downloaded RC5 and extracted
                      Message 10 of 30 , Nov 2, 2009
                      View Source
                      • 0 Attachment
                        I thought I'd give this a try and upgrade my ol'
                        Wall4PHP to RC5.
                        I feel like I missed something cause I didn't get far.
                        I downloaded RC5 and extracted /Tera-WURFL/ to my wall dir (where wall4php is living)
                        Changed the new config file to match my database, then when
                        in a web browser to /Tera-WURFL/admin/install.php
                        All I see is a blank page.
                        Any clue what's up? I'm running php 5.2.5
                      • Steve Kamerman
                        It suppose this might happen if you don t have the MySQLi extension loaded in PHP. Make sure you have the PHP directive display_errors turned on, there
                        Message 11 of 30 , Nov 2, 2009
                        View Source
                        • 0 Attachment
                          It suppose this might happen if you don't have the MySQLi extension loaded in PHP.  Make sure you have the PHP directive "display_errors" turned on, there might be an error that you're not seeing.  Also, did you configure the settings in TeraWurflConfig.php?  Are you upgrading from version 1.x or have you been using 2.x?  If you're using 2.x, you need to get the updated WALL4PHP off www.tera-wurfl.com.

                          Thanks,

                          Steve Kamerman

                          On Mon, Nov 2, 2009 at 10:11 AM, s3thj <s3thj@...> wrote:
                           

                          I thought I'd give this a try and upgrade my ol'
                          Wall4PHP to RC5.
                          I feel like I missed something cause I didn't get far.
                          I downloaded RC5 and extracted /Tera-WURFL/ to my wall dir (where wall4php is living)
                          Changed the new config file to match my database, then when
                          in a web browser to /Tera-WURFL/admin/install.php
                          All I see is a blank page.
                          Any clue what's up? I'm running php 5.2.5


                        • s3thj
                          Ok, got this error Fatal error: Class mysqli not found in
                          Message 12 of 30 , Nov 2, 2009
                          View Source
                          • 0 Attachment
                            Ok, got this error

                            Fatal error: Class 'mysqli' not found in /var/www/vhosts/(domain.com)/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php on line 436

                            Mysqli? Is there a work around for this class? I'm not sure my hosting will change
                            The php build.
                            Thanks

                            --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
                            >
                            > Hi all, sorry I haven't posted RC3 yet - our training has been ramping up
                            > pretty heavy and we only have an hour or two per day to ourselves. Once I
                            > get into Iraq I'm sure I will have much more free time! The new version
                            > fixes a couple bugs and has a cache browser that allows you to see what
                            > devices are hitting your site and their capabilities. I'll try to get it up
                            > on the site tomorrow if I have time.
                            > Thanks,
                            >
                            > Steve Kamerman
                            >
                            > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@...> wrote:
                            >
                            > >
                            > >
                            > >
                            > >
                            > > This reply is effectively repeating what David (thanks David!) just wrote
                            > > (I think - I haven't checked his code) but it may be a littler clearer for
                            > > some?
                            > > Juanto emailed me direct and this was my reply to him:
                            > >
                            > > There are a couple of small changes required. First install the Wall4PHP
                            > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can get from the
                            > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl site. Then in
                            > > the Wall4php code make the following changes:
                            > >
                            > > 1.) In Wall.php at line 94 you need to comment out the line, so it looks
                            > > like:
                            > >
                            > > // require_once(WURFL_CLASS_FILE);
                            > >
                            > > 2.) Also in Wall.php at line 96 you need to change the line that says (it's
                            > > case sensitive by the way):
                            > >
                            > >
                            > > $this->wurfl = new tera_wurfl();
                            > >
                            > > to look like this:
                            > >
                            > > $this->wurfl = new TeraWurfl();
                            > >
                            > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
                            > >
                            > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                            > >
                            > > require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                            > >
                            > > so you just need to change line 16 so it points to the new tera wurfl
                            > > config file, like this:
                            > >
                            > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                            > >
                            > > where the subdirectory /var/www/html/terawurfl2/ is where ever you have
                            > > installed TeraWurfl 2 on your system.
                            > >
                            > > and obviously line 12 in wall_prepend.php should already say:
                            > >
                            > > define('WALL_USE_TERA_WURFL', true);
                            > >
                            > > Think that's it - all the other commands, functions etc should work the
                            > > same.
                            > >
                            > > Alex
                            > >
                            > >
                            > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
                            > > "david_salgado8" <david@> wrote:
                            > > >
                            > > > Hi Steve
                            > > >
                            > > > > I'm working on RC3 tonight - I've changed all the short_open_tag uses
                            > > in the
                            > > > > code so you no longer need to have that option turned on in PHP. I've
                            > > also
                            > > > > added a cache browser that lets you see what devices are in your cache
                            > > and
                            > > > > all their capabilities. I'm working on the WALL4PHP compatibility right
                            > > now
                            > > > > - can you tell me exactly what you needed to change?
                            > > >
                            > > > Assuming they're the same changes I had to make to integrate Terawurfl 2
                            > > and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
                            > > >
                            > > > Below is a patch for the changes I had to make. NB: I took out the
                            > > conditional logic, so the patch below only works as is if you're using
                            > > Terawurfl.
                            > > >
                            > > > All the best
                            > > >
                            > > > David
                            > > >
                            > > >
                            > > >
                            > > > diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
                            > > > index 6efa4ea..a131b73 100644
                            > > > --- a/www/Wall4PHP-1.1/Wall.php
                            > > > +++ b/www/Wall4PHP-1.1/Wall.php
                            > > > @@ -92,11 +92,7 @@ class Wall {
                            > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
                            > > getenv('HTTP_USER_AGENT');
                            > > > }
                            > > > require_once(WURFL_CLASS_FILE);
                            > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                            > > > - $this->wurfl = new tera_wurfl();
                            > > > - } else {
                            > > > - $this->wurfl = new wurfl_class();
                            > > > - }
                            > > > + $this->wurfl = new TeraWurfl();
                            > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                            > > > ob_start(Array($this, '_obCallBack'));
                            > > > register_shutdown_function(Array($this, '_obEndFlush'));
                            > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                            > > b/www/Wall4PHP-1.1/wall_prepend.php
                            > > > index 2753bfe..c5894be 100644
                            > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                            > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                            > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                            > > > # Notice: Constant LOG_LEVEL already defined in
                            > > [..path..]/wurfl/wurfl_class.php on line 89
                            > > > ### define('LOG_LEVEL', 0);
                            > > >
                            > > > - # Shall we use classic PHP Tools or Tera WURFL?
                            > > > - define('WALL_USE_TERA_WURFL', false);
                            > > > -
                            > > > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
                            > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                            > > > - require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                            > > > - } else {
                            > > > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
                            > > > - }
                            > > > + # Configuration of Tera WURFL by Steve Kamerman
                            > > > + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');
                            > > >
                            > > > # For debug purporses. If you see following line uncommented, delete it
                            > > or comment
                            > > > # it out. This is needed only, if Wall.php and Wall directory resides
                            > > outside
                            > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                            > > > $wall = new Wall();
                            > > >
                            > > > }
                            > > > -?>
                            > > > \ No newline at end of file
                            > > > +?>
                            > > >
                            > >
                            > >
                            > >
                            >
                          • Steve Kamerman
                            Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The standard MySQL driver is being replaced with MySQLi. Here s some info on MySQLi:
                            Message 13 of 30 , Nov 2, 2009
                            View Source
                            • 0 Attachment
                              Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x.  The standard MySQL driver is being replaced with MySQLi.  Here's some info on MySQLi:


                              Your hosting provider should be able to turn this extension on for you as it is very common.

                              Thanks,

                              Steve Kamerman



                              On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@...> wrote:
                               

                              Ok, got this error

                              Fatal error: Class 'mysqli' not found in /var/www/vhosts/(domain.com)/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php on line 436

                              Mysqli? Is there a work around for this class? I'm not sure my hosting will change
                              The php build.
                              Thanks



                              --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
                              >
                              > Hi all, sorry I haven't posted RC3 yet - our training has been ramping up
                              > pretty heavy and we only have an hour or two per day to ourselves. Once I
                              > get into Iraq I'm sure I will have much more free time! The new version
                              > fixes a couple bugs and has a cache browser that allows you to see what
                              > devices are hitting your site and their capabilities. I'll try to get it up
                              > on the site tomorrow if I have time.
                              > Thanks,
                              >
                              > Steve Kamerman
                              >
                              > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@...> wrote:
                              >
                              > >
                              > >
                              > >
                              > >
                              > > This reply is effectively repeating what David (thanks David!) just wrote
                              > > (I think - I haven't checked his code) but it may be a littler clearer for
                              > > some?
                              > > Juanto emailed me direct and this was my reply to him:
                              > >
                              > > There are a couple of small changes required. First install the Wall4PHP
                              > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can get from the
                              > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl site. Then in
                              > > the Wall4php code make the following changes:
                              > >
                              > > 1.) In Wall.php at line 94 you need to comment out the line, so it looks
                              > > like:
                              > >
                              > > // require_once(WURFL_CLASS_FILE);
                              > >
                              > > 2.) Also in Wall.php at line 96 you need to change the line that says (it's
                              > > case sensitive by the way):
                              > >
                              > >
                              > > $this->wurfl = new tera_wurfl();
                              > >
                              > > to look like this:
                              > >
                              > > $this->wurfl = new TeraWurfl();
                              > >
                              > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
                              > >
                              > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                              > >
                              > > require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                              > >
                              > > so you just need to change line 16 so it points to the new tera wurfl
                              > > config file, like this:
                              > >
                              > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                              > >
                              > > where the subdirectory /var/www/html/terawurfl2/ is where ever you have
                              > > installed TeraWurfl 2 on your system.
                              > >
                              > > and obviously line 12 in wall_prepend.php should already say:
                              > >
                              > > define('WALL_USE_TERA_WURFL', true);
                              > >
                              > > Think that's it - all the other commands, functions etc should work the
                              > > same.
                              > >
                              > > Alex
                              > >
                              > >
                              > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,

                              > > "david_salgado8" <david@> wrote:
                              > > >
                              > > > Hi Steve
                              > > >
                              > > > > I'm working on RC3 tonight - I've changed all the short_open_tag uses
                              > > in the
                              > > > > code so you no longer need to have that option turned on in PHP. I've
                              > > also
                              > > > > added a cache browser that lets you see what devices are in your cache
                              > > and
                              > > > > all their capabilities. I'm working on the WALL4PHP compatibility right
                              > > now
                              > > > > - can you tell me exactly what you needed to change?
                              > > >
                              > > > Assuming they're the same changes I had to make to integrate Terawurfl 2
                              > > and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
                              > > >
                              > > > Below is a patch for the changes I had to make. NB: I took out the
                              > > conditional logic, so the patch below only works as is if you're using
                              > > Terawurfl.
                              > > >
                              > > > All the best
                              > > >
                              > > > David
                              > > >
                              > > >
                              > > >
                              > > > diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
                              > > > index 6efa4ea..a131b73 100644
                              > > > --- a/www/Wall4PHP-1.1/Wall.php
                              > > > +++ b/www/Wall4PHP-1.1/Wall.php
                              > > > @@ -92,11 +92,7 @@ class Wall {
                              > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
                              > > getenv('HTTP_USER_AGENT');
                              > > > }
                              > > > require_once(WURFL_CLASS_FILE);
                              > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                              > > > - $this->wurfl = new tera_wurfl();
                              > > > - } else {
                              > > > - $this->wurfl = new wurfl_class();
                              > > > - }
                              > > > + $this->wurfl = new TeraWurfl();
                              > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                              > > > ob_start(Array($this, '_obCallBack'));
                              > > > register_shutdown_function(Array($this, '_obEndFlush'));
                              > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                              > > b/www/Wall4PHP-1.1/wall_prepend.php
                              > > > index 2753bfe..c5894be 100644
                              > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                              > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                              > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                              > > > # Notice: Constant LOG_LEVEL already defined in
                              > > [..path..]/wurfl/wurfl_class.php on line 89
                              > > > ### define('LOG_LEVEL', 0);
                              > > >
                              > > > - # Shall we use classic PHP Tools or Tera WURFL?
                              > > > - define('WALL_USE_TERA_WURFL', false);
                              > > > -
                              > > > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
                              > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                              > > > - require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                              > > > - } else {
                              > > > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
                              > > > - }
                              > > > + # Configuration of Tera WURFL by Steve Kamerman
                              > > > + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');
                              > > >
                              > > > # For debug purporses. If you see following line uncommented, delete it
                              > > or comment
                              > > > # it out. This is needed only, if Wall.php and Wall directory resides
                              > > outside
                              > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                              > > > $wall = new Wall();
                              > > >
                              > > > }
                              > > > -?>
                              > > > \ No newline at end of file
                              > > > +?>
                              > > >
                              > >
                              > >
                              > >
                              >


                            • s3thj
                              Yep after adding mysqli to PHP its working! Test my site with a blackberry Bold worked as expected with its native browser. The 3rd party Bolt Browser also
                              Message 14 of 30 , Nov 5, 2009
                              View Source
                              • 0 Attachment
                                Yep after adding mysqli to PHP its working!
                                Test my site with a blackberry Bold worked as expected with its native browser.
                                The 3rd party Bolt Browser also works but Opera Mini4 insists that the page is unavailible,
                                did I miss something? Are there specific rules for handling Opera that I need to configure?
                                Thanks
                                SJ
                                --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
                                >
                                > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The standard
                                > MySQL driver is being replaced with MySQLi. Here's some info on MySQLi:
                                >
                                > http://www.php.net/manual/en/mysqli.installation.php
                                >
                                > Your hosting provider should be able to turn this extension on for you as it
                                > is very common.
                                >
                                > Thanks,
                                >
                                > Steve Kamerman
                                >
                                > <http://www.php.net/manual/en/mysqli.installation.php>
                                >
                                > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@...> wrote:
                                >
                                > >
                                > >
                                > > Ok, got this error
                                > >
                                > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(domain.com)/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
                                > > on line 436
                                > >
                                > > Mysqli? Is there a work around for this class? I'm not sure my hosting will
                                > > change
                                > > The php build.
                                > > Thanks
                                > >
                                > >
                                > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
                                > > Steve Kamerman <stevekamerman@> wrote:
                                > > >
                                > > > Hi all, sorry I haven't posted RC3 yet - our training has been ramping up
                                > > > pretty heavy and we only have an hour or two per day to ourselves. Once I
                                > > > get into Iraq I'm sure I will have much more free time! The new version
                                > > > fixes a couple bugs and has a cache browser that allows you to see what
                                > > > devices are hitting your site and their capabilities. I'll try to get it
                                > > up
                                > > > on the site tomorrow if I have time.
                                > > > Thanks,
                                > > >
                                > > > Steve Kamerman
                                > > >
                                > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
                                > > >
                                > > > >
                                > > > >
                                > > > >
                                > > > >
                                > > > > This reply is effectively repeating what David (thanks David!) just
                                > > wrote
                                > > > > (I think - I haven't checked his code) but it may be a littler clearer
                                > > for
                                > > > > some?
                                > > > > Juanto emailed me direct and this was my reply to him:
                                > > > >
                                > > > > There are a couple of small changes required. First install the
                                > > Wall4PHP
                                > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can get
                                > > from the
                                > > > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl site.
                                > > Then in
                                > > > > the Wall4php code make the following changes:
                                > > > >
                                > > > > 1.) In Wall.php at line 94 you need to comment out the line, so it
                                > > looks
                                > > > > like:
                                > > > >
                                > > > > // require_once(WURFL_CLASS_FILE);
                                > > > >
                                > > > > 2.) Also in Wall.php at line 96 you need to change the line that says
                                > > (it's
                                > > > > case sensitive by the way):
                                > > > >
                                > > > >
                                > > > > $this->wurfl = new tera_wurfl();
                                > > > >
                                > > > > to look like this:
                                > > > >
                                > > > > $this->wurfl = new TeraWurfl();
                                > > > >
                                > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
                                > > > >
                                > > > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                > > > >
                                > > > > require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                                > > > >
                                > > > > so you just need to change line 16 so it points to the new tera wurfl
                                > > > > config file, like this:
                                > > > >
                                > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                                > > > >
                                > > > > where the subdirectory /var/www/html/terawurfl2/ is where ever you have
                                > > > > installed TeraWurfl 2 on your system.
                                > > > >
                                > > > > and obviously line 12 in wall_prepend.php should already say:
                                > > > >
                                > > > > define('WALL_USE_TERA_WURFL', true);
                                > > > >
                                > > > > Think that's it - all the other commands, functions etc should work the
                                > > > > same.
                                > > > >
                                > > > > Alex
                                > > > >
                                > > > >
                                > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%
                                > > 40yahoogroups.com>,
                                > >
                                > > > > "david_salgado8" <david@> wrote:
                                > > > > >
                                > > > > > Hi Steve
                                > > > > >
                                > > > > > > I'm working on RC3 tonight - I've changed all the short_open_tag
                                > > uses
                                > > > > in the
                                > > > > > > code so you no longer need to have that option turned on in PHP.
                                > > I've
                                > > > > also
                                > > > > > > added a cache browser that lets you see what devices are in your
                                > > cache
                                > > > > and
                                > > > > > > all their capabilities. I'm working on the WALL4PHP compatibility
                                > > right
                                > > > > now
                                > > > > > > - can you tell me exactly what you needed to change?
                                > > > > >
                                > > > > > Assuming they're the same changes I had to make to integrate
                                > > Terawurfl 2
                                > > > > and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
                                > > > > >
                                > > > > > Below is a patch for the changes I had to make. NB: I took out the
                                > > > > conditional logic, so the patch below only works as is if you're using
                                > > > > Terawurfl.
                                > > > > >
                                > > > > > All the best
                                > > > > >
                                > > > > > David
                                > > > > >
                                > > > > >
                                > > > > >
                                > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
                                > > > > > index 6efa4ea..a131b73 100644
                                > > > > > --- a/www/Wall4PHP-1.1/Wall.php
                                > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
                                > > > > > @@ -92,11 +92,7 @@ class Wall {
                                > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
                                > > > > getenv('HTTP_USER_AGENT');
                                > > > > > }
                                > > > > > require_once(WURFL_CLASS_FILE);
                                > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                > > > > > - $this->wurfl = new tera_wurfl();
                                > > > > > - } else {
                                > > > > > - $this->wurfl = new wurfl_class();
                                > > > > > - }
                                > > > > > + $this->wurfl = new TeraWurfl();
                                > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                                > > > > > ob_start(Array($this, '_obCallBack'));
                                > > > > > register_shutdown_function(Array($this, '_obEndFlush'));
                                > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                                > > > > b/www/Wall4PHP-1.1/wall_prepend.php
                                > > > > > index 2753bfe..c5894be 100644
                                > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                                > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                                > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                                > > > > > # Notice: Constant LOG_LEVEL already defined in
                                > > > > [..path..]/wurfl/wurfl_class.php on line 89
                                > > > > > ### define('LOG_LEVEL', 0);
                                > > > > >
                                > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
                                > > > > > - define('WALL_USE_TERA_WURFL', false);
                                > > > > > -
                                > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
                                > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                > > > > > - require_once(dirname(__FILE__) .
                                > > '/tera-wurfl/tera_wurfl_config.php');
                                > > > > > - } else {
                                > > > > > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
                                > > > > > - }
                                > > > > > + # Configuration of Tera WURFL by Steve Kamerman
                                > > > > > + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');
                                > > > > >
                                > > > > > # For debug purporses. If you see following line uncommented, delete
                                > > it
                                > > > > or comment
                                > > > > > # it out. This is needed only, if Wall.php and Wall directory resides
                                > > > > outside
                                > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                                > > > > > $wall = new Wall();
                                > > > > >
                                > > > > > }
                                > > > > > -?>
                                > > > > > \ No newline at end of file
                                > > > > > +?>
                                > > > > >
                                > > > >
                                > > > >
                                > > > >
                                > > >
                                > >
                                > >
                                > >
                                >
                              • Steve Kamerman
                                SJ, can you please send me the User-Agent? Also, go to your Tera-WURFL admin page, then click on Tera-WURFL Test Script and paste your user agent, then send
                                Message 15 of 30 , Nov 6, 2009
                                View Source
                                • 0 Attachment
                                  SJ, can you please send me the User-Agent? Also, go to your
                                  Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
                                  paste your user agent, then send me the "tera_wurfl" section of the
                                  capabilities (it's at the end)? It looks something like this:

                                  'tera_wurfl' =>
                                  array (
                                  'num_queries' => 13,
                                  'actual_root_device' => 'sonyericsson_k700i_ver1',
                                  'match_type' => 'conclusive',
                                  'matcher' => 'SonyEricssonUserAgentMatcher',
                                  'match' => true,
                                  'lookup_time' => 0.27034306526184,
                                  'fall_back_tree' =>
                                  'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,sonyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyericsson_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
                                  'matcher_history' =>
                                  'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
                                  )

                                  Thanks,

                                  Steve Kamerman

                                  On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@...> wrote:
                                  >
                                  >
                                  >
                                  > Yep after adding mysqli to PHP its working!
                                  > Test my site with a blackberry Bold worked as expected with its native browser.
                                  > The 3rd party Bolt Browser also works but Opera Mini4 insists that the page is unavailible,
                                  > did I miss something? Are there specific rules for handling Opera that I need to configure?
                                  > Thanks
                                  > SJ
                                  >
                                  > --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
                                  > >
                                  > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The standard
                                  > > MySQL driver is being replaced with MySQLi. Here's some info on MySQLi:
                                  > >
                                  > > http://www.php.net/manual/en/mysqli.installation.php
                                  > >
                                  > > Your hosting provider should be able to turn this extension on for you as it
                                  > > is very common.
                                  > >
                                  > > Thanks,
                                  > >
                                  > > Steve Kamerman
                                  > >
                                  > > <http://www.php.net/manual/en/mysqli.installation.php>
                                  > >
                                  > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@...> wrote:
                                  > >
                                  > > >
                                  > > >
                                  > > > Ok, got this error
                                  > > >
                                  > > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(domain.com)/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
                                  > > > on line 436
                                  > > >
                                  > > > Mysqli? Is there a work around for this class? I'm not sure my hosting will
                                  > > > change
                                  > > > The php build.
                                  > > > Thanks
                                  > > >
                                  > > >
                                  > > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
                                  > > > Steve Kamerman <stevekamerman@> wrote:
                                  > > > >
                                  > > > > Hi all, sorry I haven't posted RC3 yet - our training has been ramping up
                                  > > > > pretty heavy and we only have an hour or two per day to ourselves. Once I
                                  > > > > get into Iraq I'm sure I will have much more free time! The new version
                                  > > > > fixes a couple bugs and has a cache browser that allows you to see what
                                  > > > > devices are hitting your site and their capabilities. I'll try to get it
                                  > > > up
                                  > > > > on the site tomorrow if I have time.
                                  > > > > Thanks,
                                  > > > >
                                  > > > > Steve Kamerman
                                  > > > >
                                  > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
                                  > > > >
                                  > > > > >
                                  > > > > >
                                  > > > > >
                                  > > > > >
                                  > > > > > This reply is effectively repeating what David (thanks David!) just
                                  > > > wrote
                                  > > > > > (I think - I haven't checked his code) but it may be a littler clearer
                                  > > > for
                                  > > > > > some?
                                  > > > > > Juanto emailed me direct and this was my reply to him:
                                  > > > > >
                                  > > > > > There are a couple of small changes required. First install the
                                  > > > Wall4PHP
                                  > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can get
                                  > > > from the
                                  > > > > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl site.
                                  > > > Then in
                                  > > > > > the Wall4php code make the following changes:
                                  > > > > >
                                  > > > > > 1.) In Wall.php at line 94 you need to comment out the line, so it
                                  > > > looks
                                  > > > > > like:
                                  > > > > >
                                  > > > > > // require_once(WURFL_CLASS_FILE);
                                  > > > > >
                                  > > > > > 2.) Also in Wall.php at line 96 you need to change the line that says
                                  > > > (it's
                                  > > > > > case sensitive by the way):
                                  > > > > >
                                  > > > > >
                                  > > > > > $this->wurfl = new tera_wurfl();
                                  > > > > >
                                  > > > > > to look like this:
                                  > > > > >
                                  > > > > > $this->wurfl = new TeraWurfl();
                                  > > > > >
                                  > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
                                  > > > > >
                                  > > > > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                  > > > > >
                                  > > > > > require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                                  > > > > >
                                  > > > > > so you just need to change line 16 so it points to the new tera wurfl
                                  > > > > > config file, like this:
                                  > > > > >
                                  > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                                  > > > > >
                                  > > > > > where the subdirectory /var/www/html/terawurfl2/ is where ever you have
                                  > > > > > installed TeraWurfl 2 on your system.
                                  > > > > >
                                  > > > > > and obviously line 12 in wall_prepend.php should already say:
                                  > > > > >
                                  > > > > > define('WALL_USE_TERA_WURFL', true);
                                  > > > > >
                                  > > > > > Think that's it - all the other commands, functions etc should work the
                                  > > > > > same.
                                  > > > > >
                                  > > > > > Alex
                                  > > > > >
                                  > > > > >
                                  > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%
                                  > > > 40yahoogroups.com>,
                                  > > >
                                  > > > > > "david_salgado8" <david@> wrote:
                                  > > > > > >
                                  > > > > > > Hi Steve
                                  > > > > > >
                                  > > > > > > > I'm working on RC3 tonight - I've changed all the short_open_tag
                                  > > > uses
                                  > > > > > in the
                                  > > > > > > > code so you no longer need to have that option turned on in PHP.
                                  > > > I've
                                  > > > > > also
                                  > > > > > > > added a cache browser that lets you see what devices are in your
                                  > > > cache
                                  > > > > > and
                                  > > > > > > > all their capabilities. I'm working on the WALL4PHP compatibility
                                  > > > right
                                  > > > > > now
                                  > > > > > > > - can you tell me exactly what you needed to change?
                                  > > > > > >
                                  > > > > > > Assuming they're the same changes I had to make to integrate
                                  > > > Terawurfl 2
                                  > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
                                  > > > > > >
                                  > > > > > > Below is a patch for the changes I had to make. NB: I took out the
                                  > > > > > conditional logic, so the patch below only works as is if you're using
                                  > > > > > Terawurfl.
                                  > > > > > >
                                  > > > > > > All the best
                                  > > > > > >
                                  > > > > > > David
                                  > > > > > >
                                  > > > > > >
                                  > > > > > >
                                  > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
                                  > > > > > > index 6efa4ea..a131b73 100644
                                  > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
                                  > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
                                  > > > > > > @@ -92,11 +92,7 @@ class Wall {
                                  > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
                                  > > > > > getenv('HTTP_USER_AGENT');
                                  > > > > > > }
                                  > > > > > > require_once(WURFL_CLASS_FILE);
                                  > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                  > > > > > > - $this->wurfl = new tera_wurfl();
                                  > > > > > > - } else {
                                  > > > > > > - $this->wurfl = new wurfl_class();
                                  > > > > > > - }
                                  > > > > > > + $this->wurfl = new TeraWurfl();
                                  > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                                  > > > > > > ob_start(Array($this, '_obCallBack'));
                                  > > > > > > register_shutdown_function(Array($this, '_obEndFlush'));
                                  > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                                  > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
                                  > > > > > > index 2753bfe..c5894be 100644
                                  > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                                  > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                                  > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                                  > > > > > > # Notice: Constant LOG_LEVEL already defined in
                                  > > > > > [..path..]/wurfl/wurfl_class.php on line 89
                                  > > > > > > ### define('LOG_LEVEL', 0);
                                  > > > > > >
                                  > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
                                  > > > > > > - define('WALL_USE_TERA_WURFL', false);
                                  > > > > > > -
                                  > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
                                  > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                  > > > > > > - require_once(dirname(__FILE__) .
                                  > > > '/tera-wurfl/tera_wurfl_config.php');
                                  > > > > > > - } else {
                                  > > > > > > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
                                  > > > > > > - }
                                  > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
                                  > > > > > > + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');
                                  > > > > > >
                                  > > > > > > # For debug purporses. If you see following line uncommented, delete
                                  > > > it
                                  > > > > > or comment
                                  > > > > > > # it out. This is needed only, if Wall.php and Wall directory resides
                                  > > > > > outside
                                  > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                                  > > > > > > $wall = new Wall();
                                  > > > > > >
                                  > > > > > > }
                                  > > > > > > -?>
                                  > > > > > > \ No newline at end of file
                                  > > > > > > +?>
                                  > > > > > >
                                  > > > > >
                                  > > > > >
                                  > > > > >
                                  > > > >
                                  > > >
                                  > > >
                                  > > >
                                  > >
                                  >
                                  >
                                • s3thj
                                  Umm ya false alarm, I m not sure that Opera s deal was but it started acting normal the next day. I am wondering tho... Is there currently a way to reveal the
                                  Message 16 of 30 , Nov 8, 2009
                                  View Source
                                  • 0 Attachment
                                    Umm ya false alarm, I'm not sure that Opera's deal was but it started acting normal the next day.

                                    I am wondering tho...
                                    Is there currently a way to reveal the actual device capabilities when Opera Mini is the user-agent?
                                    Most of the values are good, but things like resolution_width are not accurate
                                    from device to device (they all show 176px, no matter what the actual device width is)

                                    If nothing currently exsists to achive this, I'll write something up for WALL4PHP and share.
                                    SJ
                                    --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
                                    >
                                    > SJ, can you please send me the User-Agent? Also, go to your
                                    > Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
                                    > paste your user agent, then send me the "tera_wurfl" section of the
                                    > capabilities (it's at the end)? It looks something like this:
                                    >
                                    > 'tera_wurfl' =>
                                    > array (
                                    > 'num_queries' => 13,
                                    > 'actual_root_device' => 'sonyericsson_k700i_ver1',
                                    > 'match_type' => 'conclusive',
                                    > 'matcher' => 'SonyEricssonUserAgentMatcher',
                                    > 'match' => true,
                                    > 'lookup_time' => 0.27034306526184,
                                    > 'fall_back_tree' =>
                                    > 'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,sonyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyericsson_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
                                    > 'matcher_history' =>
                                    > 'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
                                    > )
                                    >
                                    > Thanks,
                                    >
                                    > Steve Kamerman
                                    >
                                    > On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@...> wrote:
                                    > >
                                    > >
                                    > >
                                    > > Yep after adding mysqli to PHP its working!
                                    > > Test my site with a blackberry Bold worked as expected with its native browser.
                                    > > The 3rd party Bolt Browser also works but Opera Mini4 insists that the page is unavailible,
                                    > > did I miss something? Are there specific rules for handling Opera that I need to configure?
                                    > > Thanks
                                    > > SJ
                                    > >
                                    > > --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@> wrote:
                                    > > >
                                    > > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The standard
                                    > > > MySQL driver is being replaced with MySQLi. Here's some info on MySQLi:
                                    > > >
                                    > > > http://www.php.net/manual/en/mysqli.installation.php
                                    > > >
                                    > > > Your hosting provider should be able to turn this extension on for you as it
                                    > > > is very common.
                                    > > >
                                    > > > Thanks,
                                    > > >
                                    > > > Steve Kamerman
                                    > > >
                                    > > > <http://www.php.net/manual/en/mysqli.installation.php>
                                    > > >
                                    > > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@> wrote:
                                    > > >
                                    > > > >
                                    > > > >
                                    > > > > Ok, got this error
                                    > > > >
                                    > > > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(domain.com)/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
                                    > > > > on line 436
                                    > > > >
                                    > > > > Mysqli? Is there a work around for this class? I'm not sure my hosting will
                                    > > > > change
                                    > > > > The php build.
                                    > > > > Thanks
                                    > > > >
                                    > > > >
                                    > > > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
                                    > > > > Steve Kamerman <stevekamerman@> wrote:
                                    > > > > >
                                    > > > > > Hi all, sorry I haven't posted RC3 yet - our training has been ramping up
                                    > > > > > pretty heavy and we only have an hour or two per day to ourselves. Once I
                                    > > > > > get into Iraq I'm sure I will have much more free time! The new version
                                    > > > > > fixes a couple bugs and has a cache browser that allows you to see what
                                    > > > > > devices are hitting your site and their capabilities. I'll try to get it
                                    > > > > up
                                    > > > > > on the site tomorrow if I have time.
                                    > > > > > Thanks,
                                    > > > > >
                                    > > > > > Steve Kamerman
                                    > > > > >
                                    > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
                                    > > > > >
                                    > > > > > >
                                    > > > > > >
                                    > > > > > >
                                    > > > > > >
                                    > > > > > > This reply is effectively repeating what David (thanks David!) just
                                    > > > > wrote
                                    > > > > > > (I think - I haven't checked his code) but it may be a littler clearer
                                    > > > > for
                                    > > > > > > some?
                                    > > > > > > Juanto emailed me direct and this was my reply to him:
                                    > > > > > >
                                    > > > > > > There are a couple of small changes required. First install the
                                    > > > > Wall4PHP
                                    > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can get
                                    > > > > from the
                                    > > > > > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl site.
                                    > > > > Then in
                                    > > > > > > the Wall4php code make the following changes:
                                    > > > > > >
                                    > > > > > > 1.) In Wall.php at line 94 you need to comment out the line, so it
                                    > > > > looks
                                    > > > > > > like:
                                    > > > > > >
                                    > > > > > > // require_once(WURFL_CLASS_FILE);
                                    > > > > > >
                                    > > > > > > 2.) Also in Wall.php at line 96 you need to change the line that says
                                    > > > > (it's
                                    > > > > > > case sensitive by the way):
                                    > > > > > >
                                    > > > > > >
                                    > > > > > > $this->wurfl = new tera_wurfl();
                                    > > > > > >
                                    > > > > > > to look like this:
                                    > > > > > >
                                    > > > > > > $this->wurfl = new TeraWurfl();
                                    > > > > > >
                                    > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
                                    > > > > > >
                                    > > > > > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                    > > > > > >
                                    > > > > > > require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                                    > > > > > >
                                    > > > > > > so you just need to change line 16 so it points to the new tera wurfl
                                    > > > > > > config file, like this:
                                    > > > > > >
                                    > > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                                    > > > > > >
                                    > > > > > > where the subdirectory /var/www/html/terawurfl2/ is where ever you have
                                    > > > > > > installed TeraWurfl 2 on your system.
                                    > > > > > >
                                    > > > > > > and obviously line 12 in wall_prepend.php should already say:
                                    > > > > > >
                                    > > > > > > define('WALL_USE_TERA_WURFL', true);
                                    > > > > > >
                                    > > > > > > Think that's it - all the other commands, functions etc should work the
                                    > > > > > > same.
                                    > > > > > >
                                    > > > > > > Alex
                                    > > > > > >
                                    > > > > > >
                                    > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%
                                    > > > > 40yahoogroups.com>,
                                    > > > >
                                    > > > > > > "david_salgado8" <david@> wrote:
                                    > > > > > > >
                                    > > > > > > > Hi Steve
                                    > > > > > > >
                                    > > > > > > > > I'm working on RC3 tonight - I've changed all the short_open_tag
                                    > > > > uses
                                    > > > > > > in the
                                    > > > > > > > > code so you no longer need to have that option turned on in PHP.
                                    > > > > I've
                                    > > > > > > also
                                    > > > > > > > > added a cache browser that lets you see what devices are in your
                                    > > > > cache
                                    > > > > > > and
                                    > > > > > > > > all their capabilities. I'm working on the WALL4PHP compatibility
                                    > > > > right
                                    > > > > > > now
                                    > > > > > > > > - can you tell me exactly what you needed to change?
                                    > > > > > > >
                                    > > > > > > > Assuming they're the same changes I had to make to integrate
                                    > > > > Terawurfl 2
                                    > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
                                    > > > > > > >
                                    > > > > > > > Below is a patch for the changes I had to make. NB: I took out the
                                    > > > > > > conditional logic, so the patch below only works as is if you're using
                                    > > > > > > Terawurfl.
                                    > > > > > > >
                                    > > > > > > > All the best
                                    > > > > > > >
                                    > > > > > > > David
                                    > > > > > > >
                                    > > > > > > >
                                    > > > > > > >
                                    > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
                                    > > > > > > > index 6efa4ea..a131b73 100644
                                    > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
                                    > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
                                    > > > > > > > @@ -92,11 +92,7 @@ class Wall {
                                    > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
                                    > > > > > > getenv('HTTP_USER_AGENT');
                                    > > > > > > > }
                                    > > > > > > > require_once(WURFL_CLASS_FILE);
                                    > > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                    > > > > > > > - $this->wurfl = new tera_wurfl();
                                    > > > > > > > - } else {
                                    > > > > > > > - $this->wurfl = new wurfl_class();
                                    > > > > > > > - }
                                    > > > > > > > + $this->wurfl = new TeraWurfl();
                                    > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                                    > > > > > > > ob_start(Array($this, '_obCallBack'));
                                    > > > > > > > register_shutdown_function(Array($this, '_obEndFlush'));
                                    > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                                    > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
                                    > > > > > > > index 2753bfe..c5894be 100644
                                    > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                                    > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                                    > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                                    > > > > > > > # Notice: Constant LOG_LEVEL already defined in
                                    > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
                                    > > > > > > > ### define('LOG_LEVEL', 0);
                                    > > > > > > >
                                    > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
                                    > > > > > > > - define('WALL_USE_TERA_WURFL', false);
                                    > > > > > > > -
                                    > > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
                                    > > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                    > > > > > > > - require_once(dirname(__FILE__) .
                                    > > > > '/tera-wurfl/tera_wurfl_config.php');
                                    > > > > > > > - } else {
                                    > > > > > > > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
                                    > > > > > > > - }
                                    > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
                                    > > > > > > > + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');
                                    > > > > > > >
                                    > > > > > > > # For debug purporses. If you see following line uncommented, delete
                                    > > > > it
                                    > > > > > > or comment
                                    > > > > > > > # it out. This is needed only, if Wall.php and Wall directory resides
                                    > > > > > > outside
                                    > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                                    > > > > > > > $wall = new Wall();
                                    > > > > > > >
                                    > > > > > > > }
                                    > > > > > > > -?>
                                    > > > > > > > \ No newline at end of file
                                    > > > > > > > +?>
                                    > > > > > > >
                                    > > > > > >
                                    > > > > > >
                                    > > > > > >
                                    > > > > >
                                    > > > >
                                    > > > >
                                    > > > >
                                    > > >
                                    > >
                                    > >
                                    >
                                  • s3thj
                                    Did that last question make sense or is the forums silence an indication that nothing like this is currently in place?
                                    Message 17 of 30 , Nov 15, 2009
                                    View Source
                                    • 0 Attachment
                                      Did that last question make sense or is the forums silence an indication that nothing like this is currently in place?

                                      --- In wmlprogramming@yahoogroups.com, "s3thj" <s3thj@...> wrote:
                                      >
                                      > Umm ya false alarm, I'm not sure that Opera's deal was but it started acting normal the next day.
                                      >
                                      > I am wondering tho...
                                      > Is there currently a way to reveal the actual device capabilities when Opera Mini is the user-agent?
                                      > Most of the values are good, but things like resolution_width are not accurate
                                      > from device to device (they all show 176px, no matter what the actual device width is)
                                      >
                                      > If nothing currently exsists to achive this, I'll write something up for WALL4PHP and share.
                                      > SJ
                                      > --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@> wrote:
                                      > >
                                      > > SJ, can you please send me the User-Agent? Also, go to your
                                      > > Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
                                      > > paste your user agent, then send me the "tera_wurfl" section of the
                                      > > capabilities (it's at the end)? It looks something like this:
                                      > >
                                      > > 'tera_wurfl' =>
                                      > > array (
                                      > > 'num_queries' => 13,
                                      > > 'actual_root_device' => 'sonyericsson_k700i_ver1',
                                      > > 'match_type' => 'conclusive',
                                      > > 'matcher' => 'SonyEricssonUserAgentMatcher',
                                      > > 'match' => true,
                                      > > 'lookup_time' => 0.27034306526184,
                                      > > 'fall_back_tree' =>
                                      > > 'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,sonyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyericsson_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
                                      > > 'matcher_history' =>
                                      > > 'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
                                      > > )
                                      > >
                                      > > Thanks,
                                      > >
                                      > > Steve Kamerman
                                      > >
                                      > > On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@> wrote:
                                      > > >
                                      > > >
                                      > > >
                                      > > > Yep after adding mysqli to PHP its working!
                                      > > > Test my site with a blackberry Bold worked as expected with its native browser.
                                      > > > The 3rd party Bolt Browser also works but Opera Mini4 insists that the page is unavailible,
                                      > > > did I miss something? Are there specific rules for handling Opera that I need to configure?
                                      > > > Thanks
                                      > > > SJ
                                      > > >
                                      > > > --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@> wrote:
                                      > > > >
                                      > > > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The standard
                                      > > > > MySQL driver is being replaced with MySQLi. Here's some info on MySQLi:
                                      > > > >
                                      > > > > http://www.php.net/manual/en/mysqli.installation.php
                                      > > > >
                                      > > > > Your hosting provider should be able to turn this extension on for you as it
                                      > > > > is very common.
                                      > > > >
                                      > > > > Thanks,
                                      > > > >
                                      > > > > Steve Kamerman
                                      > > > >
                                      > > > > <http://www.php.net/manual/en/mysqli.installation.php>
                                      > > > >
                                      > > > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@> wrote:
                                      > > > >
                                      > > > > >
                                      > > > > >
                                      > > > > > Ok, got this error
                                      > > > > >
                                      > > > > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(domain.com)/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
                                      > > > > > on line 436
                                      > > > > >
                                      > > > > > Mysqli? Is there a work around for this class? I'm not sure my hosting will
                                      > > > > > change
                                      > > > > > The php build.
                                      > > > > > Thanks
                                      > > > > >
                                      > > > > >
                                      > > > > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
                                      > > > > > Steve Kamerman <stevekamerman@> wrote:
                                      > > > > > >
                                      > > > > > > Hi all, sorry I haven't posted RC3 yet - our training has been ramping up
                                      > > > > > > pretty heavy and we only have an hour or two per day to ourselves. Once I
                                      > > > > > > get into Iraq I'm sure I will have much more free time! The new version
                                      > > > > > > fixes a couple bugs and has a cache browser that allows you to see what
                                      > > > > > > devices are hitting your site and their capabilities. I'll try to get it
                                      > > > > > up
                                      > > > > > > on the site tomorrow if I have time.
                                      > > > > > > Thanks,
                                      > > > > > >
                                      > > > > > > Steve Kamerman
                                      > > > > > >
                                      > > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
                                      > > > > > >
                                      > > > > > > >
                                      > > > > > > >
                                      > > > > > > >
                                      > > > > > > >
                                      > > > > > > > This reply is effectively repeating what David (thanks David!) just
                                      > > > > > wrote
                                      > > > > > > > (I think - I haven't checked his code) but it may be a littler clearer
                                      > > > > > for
                                      > > > > > > > some?
                                      > > > > > > > Juanto emailed me direct and this was my reply to him:
                                      > > > > > > >
                                      > > > > > > > There are a couple of small changes required. First install the
                                      > > > > > Wall4PHP
                                      > > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can get
                                      > > > > > from the
                                      > > > > > > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl site.
                                      > > > > > Then in
                                      > > > > > > > the Wall4php code make the following changes:
                                      > > > > > > >
                                      > > > > > > > 1.) In Wall.php at line 94 you need to comment out the line, so it
                                      > > > > > looks
                                      > > > > > > > like:
                                      > > > > > > >
                                      > > > > > > > // require_once(WURFL_CLASS_FILE);
                                      > > > > > > >
                                      > > > > > > > 2.) Also in Wall.php at line 96 you need to change the line that says
                                      > > > > > (it's
                                      > > > > > > > case sensitive by the way):
                                      > > > > > > >
                                      > > > > > > >
                                      > > > > > > > $this->wurfl = new tera_wurfl();
                                      > > > > > > >
                                      > > > > > > > to look like this:
                                      > > > > > > >
                                      > > > > > > > $this->wurfl = new TeraWurfl();
                                      > > > > > > >
                                      > > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
                                      > > > > > > >
                                      > > > > > > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                      > > > > > > >
                                      > > > > > > > require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                                      > > > > > > >
                                      > > > > > > > so you just need to change line 16 so it points to the new tera wurfl
                                      > > > > > > > config file, like this:
                                      > > > > > > >
                                      > > > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                                      > > > > > > >
                                      > > > > > > > where the subdirectory /var/www/html/terawurfl2/ is where ever you have
                                      > > > > > > > installed TeraWurfl 2 on your system.
                                      > > > > > > >
                                      > > > > > > > and obviously line 12 in wall_prepend.php should already say:
                                      > > > > > > >
                                      > > > > > > > define('WALL_USE_TERA_WURFL', true);
                                      > > > > > > >
                                      > > > > > > > Think that's it - all the other commands, functions etc should work the
                                      > > > > > > > same.
                                      > > > > > > >
                                      > > > > > > > Alex
                                      > > > > > > >
                                      > > > > > > >
                                      > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%
                                      > > > > > 40yahoogroups.com>,
                                      > > > > >
                                      > > > > > > > "david_salgado8" <david@> wrote:
                                      > > > > > > > >
                                      > > > > > > > > Hi Steve
                                      > > > > > > > >
                                      > > > > > > > > > I'm working on RC3 tonight - I've changed all the short_open_tag
                                      > > > > > uses
                                      > > > > > > > in the
                                      > > > > > > > > > code so you no longer need to have that option turned on in PHP.
                                      > > > > > I've
                                      > > > > > > > also
                                      > > > > > > > > > added a cache browser that lets you see what devices are in your
                                      > > > > > cache
                                      > > > > > > > and
                                      > > > > > > > > > all their capabilities. I'm working on the WALL4PHP compatibility
                                      > > > > > right
                                      > > > > > > > now
                                      > > > > > > > > > - can you tell me exactly what you needed to change?
                                      > > > > > > > >
                                      > > > > > > > > Assuming they're the same changes I had to make to integrate
                                      > > > > > Terawurfl 2
                                      > > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
                                      > > > > > > > >
                                      > > > > > > > > Below is a patch for the changes I had to make. NB: I took out the
                                      > > > > > > > conditional logic, so the patch below only works as is if you're using
                                      > > > > > > > Terawurfl.
                                      > > > > > > > >
                                      > > > > > > > > All the best
                                      > > > > > > > >
                                      > > > > > > > > David
                                      > > > > > > > >
                                      > > > > > > > >
                                      > > > > > > > >
                                      > > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
                                      > > > > > > > > index 6efa4ea..a131b73 100644
                                      > > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
                                      > > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
                                      > > > > > > > > @@ -92,11 +92,7 @@ class Wall {
                                      > > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
                                      > > > > > > > getenv('HTTP_USER_AGENT');
                                      > > > > > > > > }
                                      > > > > > > > > require_once(WURFL_CLASS_FILE);
                                      > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                      > > > > > > > > - $this->wurfl = new tera_wurfl();
                                      > > > > > > > > - } else {
                                      > > > > > > > > - $this->wurfl = new wurfl_class();
                                      > > > > > > > > - }
                                      > > > > > > > > + $this->wurfl = new TeraWurfl();
                                      > > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                                      > > > > > > > > ob_start(Array($this, '_obCallBack'));
                                      > > > > > > > > register_shutdown_function(Array($this, '_obEndFlush'));
                                      > > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                                      > > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
                                      > > > > > > > > index 2753bfe..c5894be 100644
                                      > > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                                      > > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                                      > > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                                      > > > > > > > > # Notice: Constant LOG_LEVEL already defined in
                                      > > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
                                      > > > > > > > > ### define('LOG_LEVEL', 0);
                                      > > > > > > > >
                                      > > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
                                      > > > > > > > > - define('WALL_USE_TERA_WURFL', false);
                                      > > > > > > > > -
                                      > > > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
                                      > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                      > > > > > > > > - require_once(dirname(__FILE__) .
                                      > > > > > '/tera-wurfl/tera_wurfl_config.php');
                                      > > > > > > > > - } else {
                                      > > > > > > > > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
                                      > > > > > > > > - }
                                      > > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
                                      > > > > > > > > + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');
                                      > > > > > > > >
                                      > > > > > > > > # For debug purporses. If you see following line uncommented, delete
                                      > > > > > it
                                      > > > > > > > or comment
                                      > > > > > > > > # it out. This is needed only, if Wall.php and Wall directory resides
                                      > > > > > > > outside
                                      > > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                                      > > > > > > > > $wall = new Wall();
                                      > > > > > > > >
                                      > > > > > > > > }
                                      > > > > > > > > -?>
                                      > > > > > > > > \ No newline at end of file
                                      > > > > > > > > +?>
                                      > > > > > > > >
                                      > > > > > > >
                                      > > > > > > >
                                      > > > > > > >
                                      > > > > > >
                                      > > > > >
                                      > > > > >
                                      > > > > >
                                      > > > >
                                      > > >
                                      > > >
                                      > >
                                      >
                                    • Steve Kamerman
                                      Currently, some Opera Mini user agents still contain enough of the original user agent to detect the device accurately and some others send the original user
                                      Message 18 of 30 , Nov 15, 2009
                                      View Source
                                      • 0 Attachment
                                        Currently, some Opera Mini user agents still contain enough of the original user agent to detect the device accurately and some others send the original user agent via a different HTTP header.  Currently, Tera-WURFL is capable of detecting the embedded user agents, but not the alternate HTTP header method.  I am not sure about the other APIs.

                                        Thanks,

                                        Steve Kamerman

                                        On Sun, Nov 15, 2009 at 8:53 AM, s3thj <s3thj@...> wrote:
                                         

                                        Did that last question make sense or is the forums silence an indication that nothing like this is currently in place?



                                        --- In wmlprogramming@yahoogroups.com, "s3thj" <s3thj@...> wrote:
                                        >
                                        > Umm ya false alarm, I'm not sure that Opera's deal was but it started acting normal the next day.
                                        >
                                        > I am wondering tho...
                                        > Is there currently a way to reveal the actual device capabilities when Opera Mini is the user-agent?
                                        > Most of the values are good, but things like resolution_width are not accurate
                                        > from device to device (they all show 176px, no matter what the actual device width is)
                                        >
                                        > If nothing currently exsists to achive this, I'll write something up for WALL4PHP and share.
                                        > SJ
                                        > --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@> wrote:
                                        > >
                                        > > SJ, can you please send me the User-Agent? Also, go to your
                                        > > Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
                                        > > paste your user agent, then send me the "tera_wurfl" section of the
                                        > > capabilities (it's at the end)? It looks something like this:
                                        > >
                                        > > 'tera_wurfl' =>
                                        > > array (
                                        > > 'num_queries' => 13,
                                        > > 'actual_root_device' => 'sonyericsson_k700i_ver1',
                                        > > 'match_type' => 'conclusive',
                                        > > 'matcher' => 'SonyEricssonUserAgentMatcher',
                                        > > 'match' => true,
                                        > > 'lookup_time' => 0.27034306526184,
                                        > > 'fall_back_tree' =>
                                        > > 'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,sonyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyericsson_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
                                        > > 'matcher_history' =>
                                        > > 'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
                                        > > )
                                        > >
                                        > > Thanks,
                                        > >
                                        > > Steve Kamerman
                                        > >
                                        > > On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@> wrote:
                                        > > >
                                        > > >
                                        > > >
                                        > > > Yep after adding mysqli to PHP its working!
                                        > > > Test my site with a blackberry Bold worked as expected with its native browser.
                                        > > > The 3rd party Bolt Browser also works but Opera Mini4 insists that the page is unavailible,
                                        > > > did I miss something? Are there specific rules for handling Opera that I need to configure?
                                        > > > Thanks
                                        > > > SJ
                                        > > >
                                        > > > --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@> wrote:
                                        > > > >
                                        > > > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The standard
                                        > > > > MySQL driver is being replaced with MySQLi. Here's some info on MySQLi:
                                        > > > >
                                        > > > > http://www.php.net/manual/en/mysqli.installation.php
                                        > > > >
                                        > > > > Your hosting provider should be able to turn this extension on for you as it
                                        > > > > is very common.
                                        > > > >
                                        > > > > Thanks,
                                        > > > >
                                        > > > > Steve Kamerman
                                        > > > >
                                        > > > > <http://www.php.net/manual/en/mysqli.installation.php>
                                        > > > >
                                        > > > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@> wrote:
                                        > > > >
                                        > > > > >
                                        > > > > >
                                        > > > > > Ok, got this error
                                        > > > > >
                                        > > > > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(domain.com)/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
                                        > > > > > on line 436
                                        > > > > >
                                        > > > > > Mysqli? Is there a work around for this class? I'm not sure my hosting will
                                        > > > > > change
                                        > > > > > The php build.
                                        > > > > > Thanks
                                        > > > > >
                                        > > > > >
                                        > > > > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
                                        > > > > > Steve Kamerman <stevekamerman@> wrote:
                                        > > > > > >
                                        > > > > > > Hi all, sorry I haven't posted RC3 yet - our training has been ramping up
                                        > > > > > > pretty heavy and we only have an hour or two per day to ourselves. Once I
                                        > > > > > > get into Iraq I'm sure I will have much more free time! The new version
                                        > > > > > > fixes a couple bugs and has a cache browser that allows you to see what
                                        > > > > > > devices are hitting your site and their capabilities. I'll try to get it
                                        > > > > > up
                                        > > > > > > on the site tomorrow if I have time.
                                        > > > > > > Thanks,
                                        > > > > > >
                                        > > > > > > Steve Kamerman
                                        > > > > > >
                                        > > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
                                        > > > > > >
                                        > > > > > > >
                                        > > > > > > >
                                        > > > > > > >
                                        > > > > > > >
                                        > > > > > > > This reply is effectively repeating what David (thanks David!) just
                                        > > > > > wrote
                                        > > > > > > > (I think - I haven't checked his code) but it may be a littler clearer
                                        > > > > > for
                                        > > > > > > > some?
                                        > > > > > > > Juanto emailed me direct and this was my reply to him:
                                        > > > > > > >
                                        > > > > > > > There are a couple of small changes required. First install the
                                        > > > > > Wall4PHP
                                        > > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you can get
                                        > > > > > from the
                                        > > > > > > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl site.
                                        > > > > > Then in
                                        > > > > > > > the Wall4php code make the following changes:
                                        > > > > > > >
                                        > > > > > > > 1.) In Wall.php at line 94 you need to comment out the line, so it
                                        > > > > > looks
                                        > > > > > > > like:
                                        > > > > > > >
                                        > > > > > > > // require_once(WURFL_CLASS_FILE);
                                        > > > > > > >
                                        > > > > > > > 2.) Also in Wall.php at line 96 you need to change the line that says
                                        > > > > > (it's
                                        > > > > > > > case sensitive by the way):
                                        > > > > > > >
                                        > > > > > > >
                                        > > > > > > > $this->wurfl = new tera_wurfl();
                                        > > > > > > >
                                        > > > > > > > to look like this:
                                        > > > > > > >
                                        > > > > > > > $this->wurfl = new TeraWurfl();
                                        > > > > > > >
                                        > > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
                                        > > > > > > >
                                        > > > > > > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                        > > > > > > >
                                        > > > > > > > require_once(dirname(__FILE__) . '/tera-wurfl/tera_wurfl_config.php');
                                        > > > > > > >
                                        > > > > > > > so you just need to change line 16 so it points to the new tera wurfl
                                        > > > > > > > config file, like this:
                                        > > > > > > >
                                        > > > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                                        > > > > > > >
                                        > > > > > > > where the subdirectory /var/www/html/terawurfl2/ is where ever you have
                                        > > > > > > > installed TeraWurfl 2 on your system.
                                        > > > > > > >
                                        > > > > > > > and obviously line 12 in wall_prepend.php should already say:
                                        > > > > > > >
                                        > > > > > > > define('WALL_USE_TERA_WURFL', true);
                                        > > > > > > >
                                        > > > > > > > Think that's it - all the other commands, functions etc should work the
                                        > > > > > > > same.
                                        > > > > > > >
                                        > > > > > > > Alex
                                        > > > > > > >
                                        > > > > > > >
                                        > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%
                                        > > > > > 40yahoogroups.com>,
                                        > > > > >
                                        > > > > > > > "david_salgado8" <david@> wrote:
                                        > > > > > > > >
                                        > > > > > > > > Hi Steve
                                        > > > > > > > >
                                        > > > > > > > > > I'm working on RC3 tonight - I've changed all the short_open_tag
                                        > > > > > uses
                                        > > > > > > > in the
                                        > > > > > > > > > code so you no longer need to have that option turned on in PHP.
                                        > > > > > I've
                                        > > > > > > > also
                                        > > > > > > > > > added a cache browser that lets you see what devices are in your
                                        > > > > > cache
                                        > > > > > > > and
                                        > > > > > > > > > all their capabilities. I'm working on the WALL4PHP compatibility
                                        > > > > > right
                                        > > > > > > > now
                                        > > > > > > > > > - can you tell me exactly what you needed to change?
                                        > > > > > > > >
                                        > > > > > > > > Assuming they're the same changes I had to make to integrate
                                        > > > > > Terawurfl 2
                                        > > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and wall_prepend.php
                                        > > > > > > > >
                                        > > > > > > > > Below is a patch for the changes I had to make. NB: I took out the
                                        > > > > > > > conditional logic, so the patch below only works as is if you're using
                                        > > > > > > > Terawurfl.
                                        > > > > > > > >
                                        > > > > > > > > All the best
                                        > > > > > > > >
                                        > > > > > > > > David
                                        > > > > > > > >
                                        > > > > > > > >
                                        > > > > > > > >
                                        > > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php b/www/Wall4PHP-1.1/Wall.php
                                        > > > > > > > > index 6efa4ea..a131b73 100644
                                        > > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
                                        > > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
                                        > > > > > > > > @@ -92,11 +92,7 @@ class Wall {
                                        > > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
                                        > > > > > > > getenv('HTTP_USER_AGENT');
                                        > > > > > > > > }
                                        > > > > > > > > require_once(WURFL_CLASS_FILE);
                                        > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                        > > > > > > > > - $this->wurfl = new tera_wurfl();
                                        > > > > > > > > - } else {
                                        > > > > > > > > - $this->wurfl = new wurfl_class();
                                        > > > > > > > > - }
                                        > > > > > > > > + $this->wurfl = new TeraWurfl();
                                        > > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                                        > > > > > > > > ob_start(Array($this, '_obCallBack'));
                                        > > > > > > > > register_shutdown_function(Array($this, '_obEndFlush'));
                                        > > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                                        > > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
                                        > > > > > > > > index 2753bfe..c5894be 100644
                                        > > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                                        > > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                                        > > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                                        > > > > > > > > # Notice: Constant LOG_LEVEL already defined in
                                        > > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
                                        > > > > > > > > ### define('LOG_LEVEL', 0);
                                        > > > > > > > >
                                        > > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
                                        > > > > > > > > - define('WALL_USE_TERA_WURFL', false);
                                        > > > > > > > > -
                                        > > > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve Kamerman
                                        > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                        > > > > > > > > - require_once(dirname(__FILE__) .
                                        > > > > > '/tera-wurfl/tera_wurfl_config.php');
                                        > > > > > > > > - } else {
                                        > > > > > > > > - require_once(dirname(__FILE__) . '/wurfl/wurfl_config.php');
                                        > > > > > > > > - }
                                        > > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
                                        > > > > > > > > + require_once(dirname(__FILE__) . '../terawurfl/TeraWurfl.php');
                                        > > > > > > > >
                                        > > > > > > > > # For debug purporses. If you see following line uncommented, delete
                                        > > > > > it
                                        > > > > > > > or comment
                                        > > > > > > > > # it out. This is needed only, if Wall.php and Wall directory resides
                                        > > > > > > > outside
                                        > > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                                        > > > > > > > > $wall = new Wall();
                                        > > > > > > > >
                                        > > > > > > > > }
                                        > > > > > > > > -?>
                                        > > > > > > > > \ No newline at end of file
                                        > > > > > > > > +?>
                                        > > > > > > > >
                                        > > > > > > >
                                        > > > > > > >
                                        > > > > > > >
                                        > > > > > >
                                        > > > > >
                                        > > > > >
                                        > > > > >
                                        > > > >
                                        > > >
                                        > > >
                                        > >
                                        >


                                      • s3thj
                                        I haven t looked closely at your code yet but would OperaMiniUserAgentMatcher.php be the right place to start custom coding? Or is there a deeper level that
                                        Message 19 of 30 , Nov 15, 2009
                                        View Source
                                        • 0 Attachment
                                          I haven't looked closely at your code yet but
                                          would OperaMiniUserAgentMatcher.php be the right place to start custom coding?
                                          Or is there a deeper level that would make a better starting point?
                                          It s a tricky problem, in the case of my Blackberry Bold browser and Opera Mini they are very different browsers and
                                          have different capabilities, but having accurate screen size is a top priority so its lame that opera mini drops the ball.


                                          --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
                                          >
                                          > Currently, some Opera Mini user agents still contain enough of the original
                                          > user agent to detect the device accurately and some others send the original
                                          > user agent via a different HTTP header. Currently, Tera-WURFL is capable of
                                          > detecting the embedded user agents, but not the alternate HTTP header
                                          > method. I am not sure about the other APIs.
                                          >
                                          > Thanks,
                                          >
                                          > Steve Kamerman
                                          >
                                          > On Sun, Nov 15, 2009 at 8:53 AM, s3thj <s3thj@...> wrote:
                                          >
                                          > >
                                          > >
                                          > > Did that last question make sense or is the forums silence an indication
                                          > > that nothing like this is currently in place?
                                          > >
                                          > >
                                          > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
                                          > > "s3thj" <s3thj@> wrote:
                                          > > >
                                          > > > Umm ya false alarm, I'm not sure that Opera's deal was but it started
                                          > > acting normal the next day.
                                          > > >
                                          > > > I am wondering tho...
                                          > > > Is there currently a way to reveal the actual device capabilities when
                                          > > Opera Mini is the user-agent?
                                          > > > Most of the values are good, but things like resolution_width are not
                                          > > accurate
                                          > > > from device to device (they all show 176px, no matter what the actual
                                          > > device width is)
                                          > > >
                                          > > > If nothing currently exsists to achive this, I'll write something up for
                                          > > WALL4PHP and share.
                                          > > > SJ
                                          > > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
                                          > > Steve Kamerman <stevekamerman@> wrote:
                                          > > > >
                                          > > > > SJ, can you please send me the User-Agent? Also, go to your
                                          > > > > Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
                                          > > > > paste your user agent, then send me the "tera_wurfl" section of the
                                          > > > > capabilities (it's at the end)? It looks something like this:
                                          > > > >
                                          > > > > 'tera_wurfl' =>
                                          > > > > array (
                                          > > > > 'num_queries' => 13,
                                          > > > > 'actual_root_device' => 'sonyericsson_k700i_ver1',
                                          > > > > 'match_type' => 'conclusive',
                                          > > > > 'matcher' => 'SonyEricssonUserAgentMatcher',
                                          > > > > 'match' => true,
                                          > > > > 'lookup_time' => 0.27034306526184,
                                          > > > > 'fall_back_tree' =>
                                          > > > >
                                          > > 'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,sonyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyericsson_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
                                          > > > > 'matcher_history' =>
                                          > > > >
                                          > > 'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
                                          > > > > )
                                          > > > >
                                          > > > > Thanks,
                                          > > > >
                                          > > > > Steve Kamerman
                                          > > > >
                                          > > > > On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@> wrote:
                                          > > > > >
                                          > > > > >
                                          > > > > >
                                          > > > > > Yep after adding mysqli to PHP its working!
                                          > > > > > Test my site with a blackberry Bold worked as expected with its
                                          > > native browser.
                                          > > > > > The 3rd party Bolt Browser also works but Opera Mini4 insists that
                                          > > the page is unavailible,
                                          > > > > > did I miss something? Are there specific rules for handling Opera
                                          > > that I need to configure?
                                          > > > > > Thanks
                                          > > > > > SJ
                                          > > > > >
                                          > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>,
                                          > > Steve Kamerman <stevekamerman@> wrote:
                                          > > > > > >
                                          > > > > > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The
                                          > > standard
                                          > > > > > > MySQL driver is being replaced with MySQLi. Here's some info on
                                          > > MySQLi:
                                          > > > > > >
                                          > > > > > > http://www.php.net/manual/en/mysqli.installation.php
                                          > > > > > >
                                          > > > > > > Your hosting provider should be able to turn this extension on for
                                          > > you as it
                                          > > > > > > is very common.
                                          > > > > > >
                                          > > > > > > Thanks,
                                          > > > > > >
                                          > > > > > > Steve Kamerman
                                          > > > > > >
                                          > > > > > > <http://www.php.net/manual/en/mysqli.installation.php>
                                          > > > > > >
                                          > > > > > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@> wrote:
                                          > > > > > >
                                          > > > > > > >
                                          > > > > > > >
                                          > > > > > > > Ok, got this error
                                          > > > > > > >
                                          > > > > > > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(
                                          > > domain.com
                                          > > )/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
                                          > > > > > > > on line 436
                                          > > > > > > >
                                          > > > > > > > Mysqli? Is there a work around for this class? I'm not sure my
                                          > > hosting will
                                          > > > > > > > change
                                          > > > > > > > The php build.
                                          > > > > > > > Thanks
                                          > > > > > > >
                                          > > > > > > >
                                          > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%
                                          > > 40yahoogroups.com>,
                                          > > > > > > > Steve Kamerman <stevekamerman@> wrote:
                                          > > > > > > > >
                                          > > > > > > > > Hi all, sorry I haven't posted RC3 yet - our training has been
                                          > > ramping up
                                          > > > > > > > > pretty heavy and we only have an hour or two per day to
                                          > > ourselves. Once I
                                          > > > > > > > > get into Iraq I'm sure I will have much more free time! The new
                                          > > version
                                          > > > > > > > > fixes a couple bugs and has a cache browser that allows you to
                                          > > see what
                                          > > > > > > > > devices are hitting your site and their capabilities. I'll try
                                          > > to get it
                                          > > > > > > > up
                                          > > > > > > > > on the site tomorrow if I have time.
                                          > > > > > > > > Thanks,
                                          > > > > > > > >
                                          > > > > > > > > Steve Kamerman
                                          > > > > > > > >
                                          > > > > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
                                          > > > > > > > >
                                          > > > > > > > > >
                                          > > > > > > > > >
                                          > > > > > > > > >
                                          > > > > > > > > >
                                          > > > > > > > > > This reply is effectively repeating what David (thanks
                                          > > David!) just
                                          > > > > > > > wrote
                                          > > > > > > > > > (I think - I haven't checked his code) but it may be a
                                          > > littler clearer
                                          > > > > > > > for
                                          > > > > > > > > > some?
                                          > > > > > > > > > Juanto emailed me direct and this was my reply to him:
                                          > > > > > > > > >
                                          > > > > > > > > > There are a couple of small changes required. First install
                                          > > the
                                          > > > > > > > Wall4PHP
                                          > > > > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you
                                          > > can get
                                          > > > > > > > from the
                                          > > > > > > > > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl
                                          > > site.
                                          > > > > > > > Then in
                                          > > > > > > > > > the Wall4php code make the following changes:
                                          > > > > > > > > >
                                          > > > > > > > > > 1.) In Wall.php at line 94 you need to comment out the line,
                                          > > so it
                                          > > > > > > > looks
                                          > > > > > > > > > like:
                                          > > > > > > > > >
                                          > > > > > > > > > // require_once(WURFL_CLASS_FILE);
                                          > > > > > > > > >
                                          > > > > > > > > > 2.) Also in Wall.php at line 96 you need to change the line
                                          > > that says
                                          > > > > > > > (it's
                                          > > > > > > > > > case sensitive by the way):
                                          > > > > > > > > >
                                          > > > > > > > > >
                                          > > > > > > > > > $this->wurfl = new tera_wurfl();
                                          > > > > > > > > >
                                          > > > > > > > > > to look like this:
                                          > > > > > > > > >
                                          > > > > > > > > > $this->wurfl = new TeraWurfl();
                                          > > > > > > > > >
                                          > > > > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
                                          > > > > > > > > >
                                          > > > > > > > > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                          > > > > > > > > >
                                          > > > > > > > > > require_once(dirname(__FILE__) .
                                          > > '/tera-wurfl/tera_wurfl_config.php');
                                          > > > > > > > > >
                                          > > > > > > > > > so you just need to change line 16 so it points to the new
                                          > > tera wurfl
                                          > > > > > > > > > config file, like this:
                                          > > > > > > > > >
                                          > > > > > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                                          > > > > > > > > >
                                          > > > > > > > > > where the subdirectory /var/www/html/terawurfl2/ is where
                                          > > ever you have
                                          > > > > > > > > > installed TeraWurfl 2 on your system.
                                          > > > > > > > > >
                                          > > > > > > > > > and obviously line 12 in wall_prepend.php should already say:
                                          > > > > > > > > >
                                          > > > > > > > > > define('WALL_USE_TERA_WURFL', true);
                                          > > > > > > > > >
                                          > > > > > > > > > Think that's it - all the other commands, functions etc
                                          > > should work the
                                          > > > > > > > > > same.
                                          > > > > > > > > >
                                          > > > > > > > > > Alex
                                          > > > > > > > > >
                                          > > > > > > > > >
                                          > > > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>
                                          > > <wmlprogramming%40yahoogroups.com><wmlprogramming%
                                          > > > > > > > 40yahoogroups.com>,
                                          > > > > > > >
                                          > > > > > > > > > "david_salgado8" <david@> wrote:
                                          > > > > > > > > > >
                                          > > > > > > > > > > Hi Steve
                                          > > > > > > > > > >
                                          > > > > > > > > > > > I'm working on RC3 tonight - I've changed all the
                                          > > short_open_tag
                                          > > > > > > > uses
                                          > > > > > > > > > in the
                                          > > > > > > > > > > > code so you no longer need to have that option turned on
                                          > > in PHP.
                                          > > > > > > > I've
                                          > > > > > > > > > also
                                          > > > > > > > > > > > added a cache browser that lets you see what devices are
                                          > > in your
                                          > > > > > > > cache
                                          > > > > > > > > > and
                                          > > > > > > > > > > > all their capabilities. I'm working on the WALL4PHP
                                          > > compatibility
                                          > > > > > > > right
                                          > > > > > > > > > now
                                          > > > > > > > > > > > - can you tell me exactly what you needed to change?
                                          > > > > > > > > > >
                                          > > > > > > > > > > Assuming they're the same changes I had to make to
                                          > > integrate
                                          > > > > > > > Terawurfl 2
                                          > > > > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and
                                          > > wall_prepend.php
                                          > > > > > > > > > >
                                          > > > > > > > > > > Below is a patch for the changes I had to make. NB: I took
                                          > > out the
                                          > > > > > > > > > conditional logic, so the patch below only works as is if
                                          > > you're using
                                          > > > > > > > > > Terawurfl.
                                          > > > > > > > > > >
                                          > > > > > > > > > > All the best
                                          > > > > > > > > > >
                                          > > > > > > > > > > David
                                          > > > > > > > > > >
                                          > > > > > > > > > >
                                          > > > > > > > > > >
                                          > > > > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php
                                          > > b/www/Wall4PHP-1.1/Wall.php
                                          > > > > > > > > > > index 6efa4ea..a131b73 100644
                                          > > > > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
                                          > > > > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
                                          > > > > > > > > > > @@ -92,11 +92,7 @@ class Wall {
                                          > > > > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
                                          > > > > > > > > > getenv('HTTP_USER_AGENT');
                                          > > > > > > > > > > }
                                          > > > > > > > > > > require_once(WURFL_CLASS_FILE);
                                          > > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
                                          > > WALL_USE_TERA_WURFL) {
                                          > > > > > > > > > > - $this->wurfl = new tera_wurfl();
                                          > > > > > > > > > > - } else {
                                          > > > > > > > > > > - $this->wurfl = new wurfl_class();
                                          > > > > > > > > > > - }
                                          > > > > > > > > > > + $this->wurfl = new TeraWurfl();
                                          > > > > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                                          > > > > > > > > > > ob_start(Array($this, '_obCallBack'));
                                          > > > > > > > > > > register_shutdown_function(Array($this, '_obEndFlush'));
                                          > > > > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                                          > > > > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
                                          > > > > > > > > > > index 2753bfe..c5894be 100644
                                          > > > > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                                          > > > > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                                          > > > > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                                          > > > > > > > > > > # Notice: Constant LOG_LEVEL already defined in
                                          > > > > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
                                          > > > > > > > > > > ### define('LOG_LEVEL', 0);
                                          > > > > > > > > > >
                                          > > > > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
                                          > > > > > > > > > > - define('WALL_USE_TERA_WURFL', false);
                                          > > > > > > > > > > -
                                          > > > > > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve
                                          > > Kamerman
                                          > > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
                                          > > WALL_USE_TERA_WURFL) {
                                          > > > > > > > > > > - require_once(dirname(__FILE__) .
                                          > > > > > > > '/tera-wurfl/tera_wurfl_config.php');
                                          > > > > > > > > > > - } else {
                                          > > > > > > > > > > - require_once(dirname(__FILE__) .
                                          > > '/wurfl/wurfl_config.php');
                                          > > > > > > > > > > - }
                                          > > > > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
                                          > > > > > > > > > > + require_once(dirname(__FILE__) .
                                          > > '../terawurfl/TeraWurfl.php');
                                          > > > > > > > > > >
                                          > > > > > > > > > > # For debug purporses. If you see following line
                                          > > uncommented, delete
                                          > > > > > > > it
                                          > > > > > > > > > or comment
                                          > > > > > > > > > > # it out. This is needed only, if Wall.php and Wall
                                          > > directory resides
                                          > > > > > > > > > outside
                                          > > > > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                                          > > > > > > > > > > $wall = new Wall();
                                          > > > > > > > > > >
                                          > > > > > > > > > > }
                                          > > > > > > > > > > -?>
                                          > > > > > > > > > > \ No newline at end of file
                                          > > > > > > > > > > +?>
                                          > > > > > > > > > >
                                          > > > > > > > > >
                                          > > > > > > > > >
                                          > > > > > > > > >
                                          > > > > > > > >
                                          > > > > > > >
                                          > > > > > > >
                                          > > > > > > >
                                          > > > > > >
                                          > > > > >
                                          > > > > >
                                          > > > >
                                          > > >
                                          > >
                                          > >
                                          > >
                                          >
                                        • Steve Kamerman
                                          Actually, it looks like I ve already included this functionality - you just have to let Tera-WURFL figure out the user agent instead of passing it in. To get
                                          Message 20 of 30 , Nov 15, 2009
                                          View Source
                                          • 0 Attachment
                                            Actually, it looks like I've already included this functionality - you just have to let Tera-WURFL figure out the user agent instead of passing it in.

                                            To get the device capabilities, call the function like this:

                                            $wurflObj->getDeviceCapabilitiesFromAgent();

                                            *** Make sure there are no arguments passed in, that way, Tera-WURFL will use WurflSupport::getUserAgent(), which looks through the HTTP request to try to find a more fitting user agent in either HTTP_X_DEVICE_USER_AGENT or HTTP_X_OPERAMINI_PHONE_UA.

                                            If there are more headers that might contain the original user agent, please let me know and I will add them here!

                                            Thanks,

                                            Steve Kamerman

                                            On Sun, Nov 15, 2009 at 1:28 PM, s3thj <s3thj@...> wrote:
                                             


                                            I haven't looked closely at your code yet but
                                            would OperaMiniUserAgentMatcher.php be the right place to start custom coding?
                                            Or is there a deeper level that would make a better starting point?
                                            It s a tricky problem, in the case of my Blackberry Bold browser and Opera Mini they are very different browsers and
                                            have different capabilities, but having accurate screen size is a top priority so its lame that opera mini drops the ball.



                                            --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
                                            >
                                            > Currently, some Opera Mini user agents still contain enough of the original
                                            > user agent to detect the device accurately and some others send the original
                                            > user agent via a different HTTP header. Currently, Tera-WURFL is capable of
                                            > detecting the embedded user agents, but not the alternate HTTP header
                                            > method. I am not sure about the other APIs.
                                            >
                                            > Thanks,
                                            >
                                            > Steve Kamerman
                                            >
                                            > On Sun, Nov 15, 2009 at 8:53 AM, s3thj <s3thj@...> wrote:
                                            >
                                            > >
                                            > >
                                            > > Did that last question make sense or is the forums silence an indication
                                            > > that nothing like this is currently in place?
                                            > >
                                            > >
                                            > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,

                                            > > "s3thj" <s3thj@> wrote:
                                            > > >
                                            > > > Umm ya false alarm, I'm not sure that Opera's deal was but it started
                                            > > acting normal the next day.
                                            > > >
                                            > > > I am wondering tho...
                                            > > > Is there currently a way to reveal the actual device capabilities when
                                            > > Opera Mini is the user-agent?
                                            > > > Most of the values are good, but things like resolution_width are not
                                            > > accurate
                                            > > > from device to device (they all show 176px, no matter what the actual
                                            > > device width is)
                                            > > >
                                            > > > If nothing currently exsists to achive this, I'll write something up for
                                            > > WALL4PHP and share.
                                            > > > SJ
                                            > > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
                                            > > Steve Kamerman <stevekamerman@> wrote:
                                            > > > >
                                            > > > > SJ, can you please send me the User-Agent? Also, go to your
                                            > > > > Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
                                            > > > > paste your user agent, then send me the "tera_wurfl" section of the
                                            > > > > capabilities (it's at the end)? It looks something like this:
                                            > > > >
                                            > > > > 'tera_wurfl' =>
                                            > > > > array (
                                            > > > > 'num_queries' => 13,
                                            > > > > 'actual_root_device' => 'sonyericsson_k700i_ver1',
                                            > > > > 'match_type' => 'conclusive',
                                            > > > > 'matcher' => 'SonyEricssonUserAgentMatcher',
                                            > > > > 'match' => true,
                                            > > > > 'lookup_time' => 0.27034306526184,
                                            > > > > 'fall_back_tree' =>
                                            > > > >
                                            > > 'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,sonyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyericsson_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
                                            > > > > 'matcher_history' =>
                                            > > > >
                                            > > 'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
                                            > > > > )
                                            > > > >
                                            > > > > Thanks,
                                            > > > >
                                            > > > > Steve Kamerman
                                            > > > >
                                            > > > > On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@> wrote:
                                            > > > > >
                                            > > > > >
                                            > > > > >
                                            > > > > > Yep after adding mysqli to PHP its working!
                                            > > > > > Test my site with a blackberry Bold worked as expected with its
                                            > > native browser.
                                            > > > > > The 3rd party Bolt Browser also works but Opera Mini4 insists that
                                            > > the page is unavailible,
                                            > > > > > did I miss something? Are there specific rules for handling Opera
                                            > > that I need to configure?
                                            > > > > > Thanks
                                            > > > > > SJ
                                            > > > > >
                                            > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>,

                                            > > Steve Kamerman <stevekamerman@> wrote:
                                            > > > > > >
                                            > > > > > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x. The
                                            > > standard
                                            > > > > > > MySQL driver is being replaced with MySQLi. Here's some info on
                                            > > MySQLi:
                                            > > > > > >
                                            > > > > > > http://www.php.net/manual/en/mysqli.installation.php
                                            > > > > > >
                                            > > > > > > Your hosting provider should be able to turn this extension on for
                                            > > you as it
                                            > > > > > > is very common.
                                            > > > > > >
                                            > > > > > > Thanks,
                                            > > > > > >
                                            > > > > > > Steve Kamerman
                                            > > > > > >
                                            > > > > > > <http://www.php.net/manual/en/mysqli.installation.php>
                                            > > > > > >
                                            > > > > > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@> wrote:
                                            > > > > > >
                                            > > > > > > >
                                            > > > > > > >
                                            > > > > > > > Ok, got this error
                                            > > > > > > >
                                            > > > > > > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(
                                            > > domain.com
                                            > > )/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
                                            > > > > > > > on line 436
                                            > > > > > > >
                                            > > > > > > > Mysqli? Is there a work around for this class? I'm not sure my
                                            > > hosting will
                                            > > > > > > > change
                                            > > > > > > > The php build.
                                            > > > > > > > Thanks
                                            > > > > > > >
                                            > > > > > > >
                                            > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%

                                            > > 40yahoogroups.com>,
                                            > > > > > > > Steve Kamerman <stevekamerman@> wrote:
                                            > > > > > > > >
                                            > > > > > > > > Hi all, sorry I haven't posted RC3 yet - our training has been
                                            > > ramping up
                                            > > > > > > > > pretty heavy and we only have an hour or two per day to
                                            > > ourselves. Once I
                                            > > > > > > > > get into Iraq I'm sure I will have much more free time! The new
                                            > > version
                                            > > > > > > > > fixes a couple bugs and has a cache browser that allows you to
                                            > > see what
                                            > > > > > > > > devices are hitting your site and their capabilities. I'll try
                                            > > to get it
                                            > > > > > > > up
                                            > > > > > > > > on the site tomorrow if I have time.
                                            > > > > > > > > Thanks,
                                            > > > > > > > >
                                            > > > > > > > > Steve Kamerman
                                            > > > > > > > >
                                            > > > > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
                                            > > > > > > > >
                                            > > > > > > > > >
                                            > > > > > > > > >
                                            > > > > > > > > >
                                            > > > > > > > > >
                                            > > > > > > > > > This reply is effectively repeating what David (thanks
                                            > > David!) just
                                            > > > > > > > wrote
                                            > > > > > > > > > (I think - I haven't checked his code) but it may be a
                                            > > littler clearer
                                            > > > > > > > for
                                            > > > > > > > > > some?
                                            > > > > > > > > > Juanto emailed me direct and this was my reply to him:
                                            > > > > > > > > >
                                            > > > > > > > > > There are a couple of small changes required. First install
                                            > > the
                                            > > > > > > > Wall4PHP
                                            > > > > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that you
                                            > > can get
                                            > > > > > > > from the
                                            > > > > > > > > > terawurfl site. Then install TeraWURFL RC2 from the terawurfl
                                            > > site.
                                            > > > > > > > Then in
                                            > > > > > > > > > the Wall4php code make the following changes:
                                            > > > > > > > > >
                                            > > > > > > > > > 1.) In Wall.php at line 94 you need to comment out the line,
                                            > > so it
                                            > > > > > > > looks
                                            > > > > > > > > > like:
                                            > > > > > > > > >
                                            > > > > > > > > > // require_once(WURFL_CLASS_FILE);
                                            > > > > > > > > >
                                            > > > > > > > > > 2.) Also in Wall.php at line 96 you need to change the line
                                            > > that says
                                            > > > > > > > (it's
                                            > > > > > > > > > case sensitive by the way):
                                            > > > > > > > > >
                                            > > > > > > > > >
                                            > > > > > > > > > $this->wurfl = new tera_wurfl();
                                            > > > > > > > > >
                                            > > > > > > > > > to look like this:
                                            > > > > > > > > >
                                            > > > > > > > > > $this->wurfl = new TeraWurfl();
                                            > > > > > > > > >
                                            > > > > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look like:
                                            > > > > > > > > >
                                            > > > > > > > > > if (defined('WALL_USE_TERA_WURFL') && WALL_USE_TERA_WURFL) {
                                            > > > > > > > > >
                                            > > > > > > > > > require_once(dirname(__FILE__) .
                                            > > '/tera-wurfl/tera_wurfl_config.php');
                                            > > > > > > > > >
                                            > > > > > > > > > so you just need to change line 16 so it points to the new
                                            > > tera wurfl
                                            > > > > > > > > > config file, like this:
                                            > > > > > > > > >
                                            > > > > > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                                            > > > > > > > > >
                                            > > > > > > > > > where the subdirectory /var/www/html/terawurfl2/ is where
                                            > > ever you have
                                            > > > > > > > > > installed TeraWurfl 2 on your system.
                                            > > > > > > > > >
                                            > > > > > > > > > and obviously line 12 in wall_prepend.php should already say:
                                            > > > > > > > > >
                                            > > > > > > > > > define('WALL_USE_TERA_WURFL', true);
                                            > > > > > > > > >
                                            > > > > > > > > > Think that's it - all the other commands, functions etc
                                            > > should work the
                                            > > > > > > > > > same.
                                            > > > > > > > > >
                                            > > > > > > > > > Alex
                                            > > > > > > > > >
                                            > > > > > > > > >
                                            > > > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>
                                            > > <wmlprogramming%40yahoogroups.com><wmlprogramming%
                                            > > > > > > > 40yahoogroups.com>,
                                            > > > > > > >
                                            > > > > > > > > > "david_salgado8" <david@> wrote:
                                            > > > > > > > > > >
                                            > > > > > > > > > > Hi Steve
                                            > > > > > > > > > >
                                            > > > > > > > > > > > I'm working on RC3 tonight - I've changed all the
                                            > > short_open_tag
                                            > > > > > > > uses
                                            > > > > > > > > > in the
                                            > > > > > > > > > > > code so you no longer need to have that option turned on
                                            > > in PHP.
                                            > > > > > > > I've
                                            > > > > > > > > > also
                                            > > > > > > > > > > > added a cache browser that lets you see what devices are
                                            > > in your
                                            > > > > > > > cache
                                            > > > > > > > > > and
                                            > > > > > > > > > > > all their capabilities. I'm working on the WALL4PHP
                                            > > compatibility
                                            > > > > > > > right
                                            > > > > > > > > > now
                                            > > > > > > > > > > > - can you tell me exactly what you needed to change?
                                            > > > > > > > > > >
                                            > > > > > > > > > > Assuming they're the same changes I had to make to
                                            > > integrate
                                            > > > > > > > Terawurfl 2
                                            > > > > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and
                                            > > wall_prepend.php
                                            > > > > > > > > > >
                                            > > > > > > > > > > Below is a patch for the changes I had to make. NB: I took
                                            > > out the
                                            > > > > > > > > > conditional logic, so the patch below only works as is if
                                            > > you're using
                                            > > > > > > > > > Terawurfl.
                                            > > > > > > > > > >
                                            > > > > > > > > > > All the best
                                            > > > > > > > > > >
                                            > > > > > > > > > > David
                                            > > > > > > > > > >
                                            > > > > > > > > > >
                                            > > > > > > > > > >
                                            > > > > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php
                                            > > b/www/Wall4PHP-1.1/Wall.php
                                            > > > > > > > > > > index 6efa4ea..a131b73 100644
                                            > > > > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
                                            > > > > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
                                            > > > > > > > > > > @@ -92,11 +92,7 @@ class Wall {
                                            > > > > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
                                            > > > > > > > > > getenv('HTTP_USER_AGENT');
                                            > > > > > > > > > > }
                                            > > > > > > > > > > require_once(WURFL_CLASS_FILE);
                                            > > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
                                            > > WALL_USE_TERA_WURFL) {
                                            > > > > > > > > > > - $this->wurfl = new tera_wurfl();
                                            > > > > > > > > > > - } else {
                                            > > > > > > > > > > - $this->wurfl = new wurfl_class();
                                            > > > > > > > > > > - }
                                            > > > > > > > > > > + $this->wurfl = new TeraWurfl();
                                            > > > > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                                            > > > > > > > > > > ob_start(Array($this, '_obCallBack'));
                                            > > > > > > > > > > register_shutdown_function(Array($this, '_obEndFlush'));
                                            > > > > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                                            > > > > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
                                            > > > > > > > > > > index 2753bfe..c5894be 100644
                                            > > > > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                                            > > > > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                                            > > > > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                                            > > > > > > > > > > # Notice: Constant LOG_LEVEL already defined in
                                            > > > > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
                                            > > > > > > > > > > ### define('LOG_LEVEL', 0);
                                            > > > > > > > > > >
                                            > > > > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
                                            > > > > > > > > > > - define('WALL_USE_TERA_WURFL', false);
                                            > > > > > > > > > > -
                                            > > > > > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve
                                            > > Kamerman
                                            > > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
                                            > > WALL_USE_TERA_WURFL) {
                                            > > > > > > > > > > - require_once(dirname(__FILE__) .
                                            > > > > > > > '/tera-wurfl/tera_wurfl_config.php');
                                            > > > > > > > > > > - } else {
                                            > > > > > > > > > > - require_once(dirname(__FILE__) .
                                            > > '/wurfl/wurfl_config.php');
                                            > > > > > > > > > > - }
                                            > > > > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
                                            > > > > > > > > > > + require_once(dirname(__FILE__) .
                                            > > '../terawurfl/TeraWurfl.php');
                                            > > > > > > > > > >
                                            > > > > > > > > > > # For debug purporses. If you see following line
                                            > > uncommented, delete
                                            > > > > > > > it
                                            > > > > > > > > > or comment
                                            > > > > > > > > > > # it out. This is needed only, if Wall.php and Wall
                                            > > directory resides
                                            > > > > > > > > > outside
                                            > > > > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                                            > > > > > > > > > > $wall = new Wall();
                                            > > > > > > > > > >
                                            > > > > > > > > > > }
                                            > > > > > > > > > > -?>
                                            > > > > > > > > > > \ No newline at end of file
                                            > > > > > > > > > > +?>
                                            > > > > > > > > > >
                                            > > > > > > > > >
                                            > > > > > > > > >
                                            > > > > > > > > >
                                            > > > > > > > >
                                            > > > > > > >
                                            > > > > > > >
                                            > > > > > > >
                                            > > > > > >
                                            > > > > >
                                            > > > > >
                                            > > > >
                                            > > >
                                            > >
                                            > >
                                            > >
                                            >


                                          • s3thj
                                            Oh that s great news! I guess all that I ll need to do is mod wall4php to use this function in cases where the transcoder_ua_header isn t user-agent .
                                            Message 21 of 30 , Nov 15, 2009
                                            View Source
                                            • 0 Attachment
                                              Oh that's great news!
                                              I guess all that I'll need to do is mod wall4php to use this function in cases where the transcoder_ua_header isn't "user-agent".
                                              Ofcourse it'll only need the extra function on capabilities that are device (and not browser) specific, like resolution_width.
                                              Thanks for you patience and, of course, great work on Tera-Wurfl!

                                              Seth

                                              --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
                                              >
                                              > Actually, it looks like I've already included this functionality - you just
                                              > have to let Tera-WURFL figure out the user agent instead of passing it in.
                                              >
                                              > To get the device capabilities, call the function like this:
                                              >
                                              > $wurflObj->getDeviceCapabilitiesFromAgent();
                                              >
                                              > *** Make sure there are no arguments passed in, that way, Tera-WURFL will
                                              > use WurflSupport::getUserAgent(), which looks through the HTTP request to
                                              > try to find a more fitting user agent in either HTTP_X_DEVICE_USER_AGENT
                                              > or HTTP_X_OPERAMINI_PHONE_UA.
                                              >
                                              > If there are more headers that might contain the original user agent, please
                                              > let me know and I will add them here!
                                              >
                                              > Thanks,
                                              >
                                              > Steve Kamerman
                                              >
                                              > On Sun, Nov 15, 2009 at 1:28 PM, s3thj <s3thj@...> wrote:
                                              >
                                              > >
                                              > >
                                              > >
                                              > > I haven't looked closely at your code yet but
                                              > > would OperaMiniUserAgentMatcher.php be the right place to start custom
                                              > > coding?
                                              > > Or is there a deeper level that would make a better starting point?
                                              > > It s a tricky problem, in the case of my Blackberry Bold browser and Opera
                                              > > Mini they are very different browsers and
                                              > > have different capabilities, but having accurate screen size is a top
                                              > > priority so its lame that opera mini drops the ball.
                                              > >
                                              > >
                                              > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
                                              > > Steve Kamerman <stevekamerman@> wrote:
                                              > > >
                                              > > > Currently, some Opera Mini user agents still contain enough of the
                                              > > original
                                              > > > user agent to detect the device accurately and some others send the
                                              > > original
                                              > > > user agent via a different HTTP header. Currently, Tera-WURFL is capable
                                              > > of
                                              > > > detecting the embedded user agents, but not the alternate HTTP header
                                              > > > method. I am not sure about the other APIs.
                                              > > >
                                              > > > Thanks,
                                              > > >
                                              > > > Steve Kamerman
                                              > > >
                                              > > > On Sun, Nov 15, 2009 at 8:53 AM, s3thj <s3thj@> wrote:
                                              > > >
                                              > > > >
                                              > > > >
                                              > > > > Did that last question make sense or is the forums silence an
                                              > > indication
                                              > > > > that nothing like this is currently in place?
                                              > > > >
                                              > > > >
                                              > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%
                                              > > 40yahoogroups.com>,
                                              > >
                                              > > > > "s3thj" <s3thj@> wrote:
                                              > > > > >
                                              > > > > > Umm ya false alarm, I'm not sure that Opera's deal was but it started
                                              > > > > acting normal the next day.
                                              > > > > >
                                              > > > > > I am wondering tho...
                                              > > > > > Is there currently a way to reveal the actual device capabilities
                                              > > when
                                              > > > > Opera Mini is the user-agent?
                                              > > > > > Most of the values are good, but things like resolution_width are not
                                              > > > > accurate
                                              > > > > > from device to device (they all show 176px, no matter what the actual
                                              > > > > device width is)
                                              > > > > >
                                              > > > > > If nothing currently exsists to achive this, I'll write something up
                                              > > for
                                              > > > > WALL4PHP and share.
                                              > > > > > SJ
                                              > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%
                                              > > 40yahoogroups.com>,
                                              > > > > Steve Kamerman <stevekamerman@> wrote:
                                              > > > > > >
                                              > > > > > > SJ, can you please send me the User-Agent? Also, go to your
                                              > > > > > > Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
                                              > > > > > > paste your user agent, then send me the "tera_wurfl" section of the
                                              > > > > > > capabilities (it's at the end)? It looks something like this:
                                              > > > > > >
                                              > > > > > > 'tera_wurfl' =>
                                              > > > > > > array (
                                              > > > > > > 'num_queries' => 13,
                                              > > > > > > 'actual_root_device' => 'sonyericsson_k700i_ver1',
                                              > > > > > > 'match_type' => 'conclusive',
                                              > > > > > > 'matcher' => 'SonyEricssonUserAgentMatcher',
                                              > > > > > > 'match' => true,
                                              > > > > > > 'lookup_time' => 0.27034306526184,
                                              > > > > > > 'fall_back_tree' =>
                                              > > > > > >
                                              > > > >
                                              > > 'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,sonyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyericsson_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
                                              > > > > > > 'matcher_history' =>
                                              > > > > > >
                                              > > > >
                                              > > 'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
                                              > > > > > > )
                                              > > > > > >
                                              > > > > > > Thanks,
                                              > > > > > >
                                              > > > > > > Steve Kamerman
                                              > > > > > >
                                              > > > > > > On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@> wrote:
                                              > > > > > > >
                                              > > > > > > >
                                              > > > > > > >
                                              > > > > > > > Yep after adding mysqli to PHP its working!
                                              > > > > > > > Test my site with a blackberry Bold worked as expected with its
                                              > > > > native browser.
                                              > > > > > > > The 3rd party Bolt Browser also works but Opera Mini4 insists
                                              > > that
                                              > > > > the page is unavailible,
                                              > > > > > > > did I miss something? Are there specific rules for handling Opera
                                              > > > > that I need to configure?
                                              > > > > > > > Thanks
                                              > > > > > > > SJ
                                              > > > > > > >
                                              > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>
                                              > > <wmlprogramming%40yahoogroups.com>,
                                              > >
                                              > > > > Steve Kamerman <stevekamerman@> wrote:
                                              > > > > > > > >
                                              > > > > > > > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x.
                                              > > The
                                              > > > > standard
                                              > > > > > > > > MySQL driver is being replaced with MySQLi. Here's some info on
                                              > > > > MySQLi:
                                              > > > > > > > >
                                              > > > > > > > > http://www.php.net/manual/en/mysqli.installation.php
                                              > > > > > > > >
                                              > > > > > > > > Your hosting provider should be able to turn this extension on
                                              > > for
                                              > > > > you as it
                                              > > > > > > > > is very common.
                                              > > > > > > > >
                                              > > > > > > > > Thanks,
                                              > > > > > > > >
                                              > > > > > > > > Steve Kamerman
                                              > > > > > > > >
                                              > > > > > > > > <http://www.php.net/manual/en/mysqli.installation.php>
                                              > > > > > > > >
                                              > > > > > > > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@> wrote:
                                              > > > > > > > >
                                              > > > > > > > > >
                                              > > > > > > > > >
                                              > > > > > > > > > Ok, got this error
                                              > > > > > > > > >
                                              > > > > > > > > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(
                                              > > > > domain.com
                                              > > > >
                                              > > )/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
                                              > > > > > > > > > on line 436
                                              > > > > > > > > >
                                              > > > > > > > > > Mysqli? Is there a work around for this class? I'm not sure
                                              > > my
                                              > > > > hosting will
                                              > > > > > > > > > change
                                              > > > > > > > > > The php build.
                                              > > > > > > > > > Thanks
                                              > > > > > > > > >
                                              > > > > > > > > >
                                              > > > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>
                                              > > <wmlprogramming%40yahoogroups.com><wmlprogramming%
                                              > >
                                              > > > > 40yahoogroups.com>,
                                              > > > > > > > > > Steve Kamerman <stevekamerman@> wrote:
                                              > > > > > > > > > >
                                              > > > > > > > > > > Hi all, sorry I haven't posted RC3 yet - our training has
                                              > > been
                                              > > > > ramping up
                                              > > > > > > > > > > pretty heavy and we only have an hour or two per day to
                                              > > > > ourselves. Once I
                                              > > > > > > > > > > get into Iraq I'm sure I will have much more free time! The
                                              > > new
                                              > > > > version
                                              > > > > > > > > > > fixes a couple bugs and has a cache browser that allows you
                                              > > to
                                              > > > > see what
                                              > > > > > > > > > > devices are hitting your site and their capabilities. I'll
                                              > > try
                                              > > > > to get it
                                              > > > > > > > > > up
                                              > > > > > > > > > > on the site tomorrow if I have time.
                                              > > > > > > > > > > Thanks,
                                              > > > > > > > > > >
                                              > > > > > > > > > > Steve Kamerman
                                              > > > > > > > > > >
                                              > > > > > > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
                                              > > > > > > > > > >
                                              > > > > > > > > > > >
                                              > > > > > > > > > > >
                                              > > > > > > > > > > >
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > This reply is effectively repeating what David (thanks
                                              > > > > David!) just
                                              > > > > > > > > > wrote
                                              > > > > > > > > > > > (I think - I haven't checked his code) but it may be a
                                              > > > > littler clearer
                                              > > > > > > > > > for
                                              > > > > > > > > > > > some?
                                              > > > > > > > > > > > Juanto emailed me direct and this was my reply to him:
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > There are a couple of small changes required. First
                                              > > install
                                              > > > > the
                                              > > > > > > > > > Wall4PHP
                                              > > > > > > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that
                                              > > you
                                              > > > > can get
                                              > > > > > > > > > from the
                                              > > > > > > > > > > > terawurfl site. Then install TeraWURFL RC2 from the
                                              > > terawurfl
                                              > > > > site.
                                              > > > > > > > > > Then in
                                              > > > > > > > > > > > the Wall4php code make the following changes:
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > 1.) In Wall.php at line 94 you need to comment out the
                                              > > line,
                                              > > > > so it
                                              > > > > > > > > > looks
                                              > > > > > > > > > > > like:
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > // require_once(WURFL_CLASS_FILE);
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > 2.) Also in Wall.php at line 96 you need to change the
                                              > > line
                                              > > > > that says
                                              > > > > > > > > > (it's
                                              > > > > > > > > > > > case sensitive by the way):
                                              > > > > > > > > > > >
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > $this->wurfl = new tera_wurfl();
                                              > > > > > > > > > > >B
                                              > > > > > > > > > > > to look like this:
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > $this->wurfl = new TeraWurfl();
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look
                                              > > like:
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > if (defined('WALL_USE_TERA_WURFL') &&
                                              > > WALL_USE_TERA_WURFL) {
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > require_once(dirname(__FILE__) .
                                              > > > > '/tera-wurfl/tera_wurfl_config.php');
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > so you just need to change line 16 so it points to the
                                              > > new
                                              > > > > tera wurfl
                                              > > > > > > > > > > > config file, like this:
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > where the subdirectory /var/www/html/terawurfl2/ is where
                                              > > > > ever you have
                                              > > > > > > > > > > > installed TeraWurfl 2 on your system.
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > and obviously line 12 in wall_prepend.php should already
                                              > > say:
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > define('WALL_USE_TERA_WURFL', true);
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > Think that's it - all the other commands, functions etc
                                              > > > > should work the
                                              > > > > > > > > > > > same.
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > Alex
                                              > > > > > > > > > > >
                                              > > > > > > > > > > >
                                              > > > > > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>
                                              > > <wmlprogramming%40yahoogroups.com>
                                              > > > > <wmlprogramming%40yahoogroups.com><wmlprogramming%
                                              > > > > > > > > > 40yahoogroups.com>,
                                              > > > > > > > > >
                                              > > > > > > > > > > > "david_salgado8" <david@> wrote:
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > > Hi Steve
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > > > I'm working on RC3 tonight - I've changed all the
                                              > > > > short_open_tag
                                              > > > > > > > > > uses
                                              > > > > > > > > > > > in the
                                              > > > > > > > > > > > > > code so you no longer need to have that option turned
                                              > > on
                                              > > > > in PHP.
                                              > > > > > > > > > I've
                                              > > > > > > > > > > > also
                                              > > > > > > > > > > > > > added a cache browser that lets you see what devices
                                              > > are
                                              > > > > in your
                                              > > > > > > > > > cache
                                              > > > > > > > > > > > and
                                              > > > > > > > > > > > > > all their capabilities. I'm working on the WALL4PHP
                                              > > > > compatibility
                                              > > > > > > > > > right
                                              > > > > > > > > > > > now
                                              > > > > > > > > > > > > > - can you tell me exactly what you needed to change?
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > > Assuming they're the same changes I had to make to
                                              > > > > integrate
                                              > > > > > > > > > Terawurfl 2
                                              > > > > > > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and
                                              > > > > wall_prepend.php
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > > Below is a patch for the changes I had to make. NB: I
                                              > > took
                                              > > > > out the
                                              > > > > > > > > > > > conditional logic, so the patch below only works as is if
                                              > > > > you're using
                                              > > > > > > > > > > > Terawurfl.
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > > All the best
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > > David
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php
                                              > > > > b/www/Wall4PHP-1.1/Wall.php
                                              > > > > > > > > > > > > index 6efa4ea..a131b73 100644
                                              > > > > > > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
                                              > > > > > > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
                                              > > > > > > > > > > > > @@ -92,11 +92,7 @@ class Wall {
                                              > > > > > > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
                                              > > > > > > > > > > > getenv('HTTP_USER_AGENT');
                                              > > > > > > > > > > > > }
                                              > > > > > > > > > > > > require_once(WURFL_CLASS_FILE);
                                              > > > > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
                                              > > > > WALL_USE_TERA_WURFL) {
                                              > > > > > > > > > > > > - $this->wurfl = new tera_wurfl();
                                              > > > > > > > > > > > > - } else {
                                              > > > > > > > > > > > > - $this->wurfl = new wurfl_class();
                                              > > > > > > > > > > > > - }
                                              > > > > > > > > > > > > + $this->wurfl = new TeraWurfl();
                                              > > > > > > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                                              > > > > > > > > > > > > ob_start(Array($this, '_obCallBack'));
                                              > > > > > > > > > > > > register_shutdown_function(Array($this,
                                              > > '_obEndFlush'));
                                              > > > > > > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                                              > > > > > > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
                                              > > > > > > > > > > > > index 2753bfe..c5894be 100644
                                              > > > > > > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                                              > > > > > > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                                              > > > > > > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                                              > > > > > > > > > > > > # Notice: Constant LOG_LEVEL already defined in
                                              > > > > > > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
                                              > > > > > > > > > > > > ### define('LOG_LEVEL', 0);
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
                                              > > > > > > > > > > > > - define('WALL_USE_TERA_WURFL', false);
                                              > > > > > > > > > > > > -
                                              > > > > > > > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve
                                              > > > > Kamerman
                                              > > > > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
                                              > > > > WALL_USE_TERA_WURFL) {
                                              > > > > > > > > > > > > - require_once(dirname(__FILE__) .
                                              > > > > > > > > > '/tera-wurfl/tera_wurfl_config.php');
                                              > > > > > > > > > > > > - } else {
                                              > > > > > > > > > > > > - require_once(dirname(__FILE__) .
                                              > > > > '/wurfl/wurfl_config.php');
                                              > > > > > > > > > > > > - }
                                              > > > > > > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
                                              > > > > > > > > > > > > + require_once(dirname(__FILE__) .
                                              > > > > '../terawurfl/TeraWurfl.php');
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > > # For debug purporses. If you see following line
                                              > > > > uncommented, delete
                                              > > > > > > > > > it
                                              > > > > > > > > > > > or comment
                                              > > > > > > > > > > > > # it out. This is needed only, if Wall.php and Wall
                                              > > > > directory resides
                                              > > > > > > > > > > > outside
                                              > > > > > > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                                              > > > > > > > > > > > > $wall = new Wall();
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > > > }
                                              > > > > > > > > > > > > -?>
                                              > > > > > > > > > > > > \ No newline at end of file
                                              > > > > > > > > > > > > +?>
                                              > > > > > > > > > > > >
                                              > > > > > > > > > > >
                                              > > > > > > > > > > >
                                              > > > > > > > > > > >
                                              > > > > > > > > > >
                                              > > > > > > > > >
                                              > > > > > > > > >
                                              > > > > > > > > >
                                              > > > > > > > >
                                              > > > > > > >
                                              > > > > > > >
                                              > > > > > >
                                              > > > > >
                                              > > > >
                                              > > > >
                                              > > > >
                                              > > >
                                              > >
                                              > >
                                              > >
                                              >
                                            • Steve Kamerman
                                              Seth, I m also maintaining WALL4PHP on my site since some things needed to be changed to support Tera-WURFL 2.x, so I went ahead and made those changes for
                                              Message 22 of 30 , Nov 16, 2009
                                              View Source
                                              • 0 Attachment
                                                Seth, I'm also maintaining WALL4PHP on my site since some things needed to be changed to support Tera-WURFL 2.x, so I went ahead and made those changes for you.  WALL4PHP now uses Tera-WURFL's User Agent detection to determine the User Agent.  It's available from www.tera-wurfl.com, or you can use this direct link: 


                                                Thanks,

                                                Steve Kamerman

                                                On Sun, Nov 15, 2009 at 8:53 PM, s3thj <s3thj@...> wrote:
                                                 

                                                Oh that's great news!
                                                I guess all that I'll need to do is mod wall4php to use this function in cases where the transcoder_ua_header isn't "user-agent".
                                                Ofcourse it'll only need the extra function on capabilities that are device (and not browser) specific, like resolution_width.
                                                Thanks for you patience and, of course, great work on Tera-Wurfl!

                                                Seth



                                                --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
                                                >
                                                > Actually, it looks like I've already included this functionality - you just
                                                > have to let Tera-WURFL figure out the user agent instead of passing it in.
                                                >
                                                > To get the device capabilities, call the function like this:
                                                >
                                                > $wurflObj->getDeviceCapabilitiesFromAgent();
                                                >
                                                > *** Make sure there are no arguments passed in, that way, Tera-WURFL will
                                                > use WurflSupport::getUserAgent(), which looks through the HTTP request to
                                                > try to find a more fitting user agent in either HTTP_X_DEVICE_USER_AGENT
                                                > or HTTP_X_OPERAMINI_PHONE_UA.
                                                >
                                                > If there are more headers that might contain the original user agent, please
                                                > let me know and I will add them here!
                                                >
                                                > Thanks,
                                                >
                                                > Steve Kamerman
                                                >
                                                > On Sun, Nov 15, 2009 at 1:28 PM, s3thj <s3thj@...> wrote:
                                                >
                                                > >
                                                > >
                                                > >
                                                > > I haven't looked closely at your code yet but
                                                > > would OperaMiniUserAgentMatcher.php be the right place to start custom
                                                > > coding?
                                                > > Or is there a deeper level that would make a better starting point?
                                                > > It s a tricky problem, in the case of my Blackberry Bold browser and Opera
                                                > > Mini they are very different browsers and
                                                > > have different capabilities, but having accurate screen size is a top
                                                > > priority so its lame that opera mini drops the ball.
                                                > >
                                                > >
                                                > > --- In wmlprogramming@yahoogroups.com <wmlprogramming%40yahoogroups.com>,
                                                > > Steve Kamerman <stevekamerman@> wrote:
                                                > > >
                                                > > > Currently, some Opera Mini user agents still contain enough of the
                                                > > original
                                                > > > user agent to detect the device accurately and some others send the
                                                > > original
                                                > > > user agent via a different HTTP header. Currently, Tera-WURFL is capable
                                                > > of
                                                > > > detecting the embedded user agents, but not the alternate HTTP header
                                                > > > method. I am not sure about the other APIs.
                                                > > >
                                                > > > Thanks,
                                                > > >
                                                > > > Steve Kamerman
                                                > > >
                                                > > > On Sun, Nov 15, 2009 at 8:53 AM, s3thj <s3thj@> wrote:
                                                > > >
                                                > > > >
                                                > > > >
                                                > > > > Did that last question make sense or is the forums silence an
                                                > > indication
                                                > > > > that nothing like this is currently in place?
                                                > > > >
                                                > > > >
                                                > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%

                                                > > 40yahoogroups.com>,
                                                > >
                                                > > > > "s3thj" <s3thj@> wrote:
                                                > > > > >
                                                > > > > > Umm ya false alarm, I'm not sure that Opera's deal was but it started
                                                > > > > acting normal the next day.
                                                > > > > >
                                                > > > > > I am wondering tho...
                                                > > > > > Is there currently a way to reveal the actual device capabilities
                                                > > when
                                                > > > > Opera Mini is the user-agent?
                                                > > > > > Most of the values are good, but things like resolution_width are not
                                                > > > > accurate
                                                > > > > > from device to device (they all show 176px, no matter what the actual
                                                > > > > device width is)
                                                > > > > >
                                                > > > > > If nothing currently exsists to achive this, I'll write something up
                                                > > for
                                                > > > > WALL4PHP and share.
                                                > > > > > SJ
                                                > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com><wmlprogramming%

                                                > > 40yahoogroups.com>,
                                                > > > > Steve Kamerman <stevekamerman@> wrote:
                                                > > > > > >
                                                > > > > > > SJ, can you please send me the User-Agent? Also, go to your
                                                > > > > > > Tera-WURFL admin page, then click on "Tera-WURFL Test Script" and
                                                > > > > > > paste your user agent, then send me the "tera_wurfl" section of the
                                                > > > > > > capabilities (it's at the end)? It looks something like this:
                                                > > > > > >
                                                > > > > > > 'tera_wurfl' =>
                                                > > > > > > array (
                                                > > > > > > 'num_queries' => 13,
                                                > > > > > > 'actual_root_device' => 'sonyericsson_k700i_ver1',
                                                > > > > > > 'match_type' => 'conclusive',
                                                > > > > > > 'matcher' => 'SonyEricssonUserAgentMatcher',
                                                > > > > > > 'match' => true,
                                                > > > > > > 'lookup_time' => 0.27034306526184,
                                                > > > > > > 'fall_back_tree' =>
                                                > > > > > >
                                                > > > >
                                                > > 'sonyericsson_k700i_ver1subr2ay,sonyericsson_k700i_ver1,sonyericsson_k700_ver1,sonyericsson_40_generic,sonyericsson_33_generic,sonyericsson_30_generic,sonyericsson_xhtml_generic,sonyericsson_generic,ericsson_generic,generic',
                                                > > > > > > 'matcher_history' =>
                                                > > > > > >
                                                > > > >
                                                > > 'SonyEricssonUserAgentMatcher(exact),SonyEricssonUserAgentMatcher(conclusive)',
                                                > > > > > > )
                                                > > > > > >
                                                > > > > > > Thanks,
                                                > > > > > >
                                                > > > > > > Steve Kamerman
                                                > > > > > >
                                                > > > > > > On Fri, Nov 6, 2009 at 12:48 AM, s3thj <s3thj@> wrote:
                                                > > > > > > >
                                                > > > > > > >
                                                > > > > > > >
                                                > > > > > > > Yep after adding mysqli to PHP its working!
                                                > > > > > > > Test my site with a blackberry Bold worked as expected with its
                                                > > > > native browser.
                                                > > > > > > > The 3rd party Bolt Browser also works but Opera Mini4 insists
                                                > > that
                                                > > > > the page is unavailible,
                                                > > > > > > > did I miss something? Are there specific rules for handling Opera
                                                > > > > that I need to configure?
                                                > > > > > > > Thanks
                                                > > > > > > > SJ
                                                > > > > > > >
                                                > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>
                                                > > <wmlprogramming%40yahoogroups.com>,
                                                > >
                                                > > > > Steve Kamerman <stevekamerman@> wrote:
                                                > > > > > > > >
                                                > > > > > > > > Unfortunately, you need to have MySQLi to use Tera-WURFL 2.x.
                                                > > The
                                                > > > > standard
                                                > > > > > > > > MySQL driver is being replaced with MySQLi. Here's some info on
                                                > > > > MySQLi:
                                                > > > > > > > >
                                                > > > > > > > > http://www.php.net/manual/en/mysqli.installation.php
                                                > > > > > > > >
                                                > > > > > > > > Your hosting provider should be able to turn this extension on
                                                > > for
                                                > > > > you as it
                                                > > > > > > > > is very common.
                                                > > > > > > > >
                                                > > > > > > > > Thanks,
                                                > > > > > > > >
                                                > > > > > > > > Steve Kamerman
                                                > > > > > > > >
                                                > > > > > > > > <http://www.php.net/manual/en/mysqli.installation.php>
                                                > > > > > > > >
                                                > > > > > > > > On Mon, Nov 2, 2009 at 11:17 AM, s3thj <s3thj@> wrote:
                                                > > > > > > > >
                                                > > > > > > > > >
                                                > > > > > > > > >
                                                > > > > > > > > > Ok, got this error
                                                > > > > > > > > >
                                                > > > > > > > > > Fatal error: Class 'mysqli' not found in /var/www/vhosts/(
                                                > > > > domain.com
                                                > > > >
                                                > > )/httpdocs/wallNEW/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php
                                                > > > > > > > > > on line 436
                                                > > > > > > > > >
                                                > > > > > > > > > Mysqli? Is there a work around for this class? I'm not sure
                                                > > my
                                                > > > > hosting will
                                                > > > > > > > > > change
                                                > > > > > > > > > The php build.
                                                > > > > > > > > > Thanks
                                                > > > > > > > > >
                                                > > > > > > > > >
                                                > > > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>
                                                > > <wmlprogramming%40yahoogroups.com><wmlprogramming%
                                                > >
                                                > > > > 40yahoogroups.com>,
                                                > > > > > > > > > Steve Kamerman <stevekamerman@> wrote:
                                                > > > > > > > > > >
                                                > > > > > > > > > > Hi all, sorry I haven't posted RC3 yet - our training has
                                                > > been
                                                > > > > ramping up
                                                > > > > > > > > > > pretty heavy and we only have an hour or two per day to
                                                > > > > ourselves. Once I
                                                > > > > > > > > > > get into Iraq I'm sure I will have much more free time! The
                                                > > new
                                                > > > > version
                                                > > > > > > > > > > fixes a couple bugs and has a cache browser that allows you
                                                > > to
                                                > > > > see what
                                                > > > > > > > > > > devices are hitting your site and their capabilities. I'll
                                                > > try
                                                > > > > to get it
                                                > > > > > > > > > up
                                                > > > > > > > > > > on the site tomorrow if I have time.
                                                > > > > > > > > > > Thanks,
                                                > > > > > > > > > >
                                                > > > > > > > > > > Steve Kamerman
                                                > > > > > > > > > >
                                                > > > > > > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
                                                > > > > > > > > > >
                                                > > > > > > > > > > >
                                                > > > > > > > > > > >
                                                > > > > > > > > > > >
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > This reply is effectively repeating what David (thanks
                                                > > > > David!) just
                                                > > > > > > > > > wrote
                                                > > > > > > > > > > > (I think - I haven't checked his code) but it may be a
                                                > > > > littler clearer
                                                > > > > > > > > > for
                                                > > > > > > > > > > > some?
                                                > > > > > > > > > > > Juanto emailed me direct and this was my reply to him:
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > There are a couple of small changes required. First
                                                > > install
                                                > > > > the
                                                > > > > > > > > > Wall4PHP
                                                > > > > > > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2) that
                                                > > you
                                                > > > > can get
                                                > > > > > > > > > from the
                                                > > > > > > > > > > > terawurfl site. Then install TeraWURFL RC2 from the
                                                > > terawurfl
                                                > > > > site.
                                                > > > > > > > > > Then in
                                                > > > > > > > > > > > the Wall4php code make the following changes:
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > 1.) In Wall.php at line 94 you need to comment out the
                                                > > line,
                                                > > > > so it
                                                > > > > > > > > > looks
                                                > > > > > > > > > > > like:
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > // require_once(WURFL_CLASS_FILE);
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > 2.) Also in Wall.php at line 96 you need to change the
                                                > > line
                                                > > > > that says
                                                > > > > > > > > > (it's
                                                > > > > > > > > > > > case sensitive by the way):
                                                > > > > > > > > > > >
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > $this->wurfl = new tera_wurfl();
                                                > > > > > > > > > > >B
                                                > > > > > > > > > > > to look like this:
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > $this->wurfl = new TeraWurfl();
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently look
                                                > > like:
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > if (defined('WALL_USE_TERA_WURFL') &&
                                                > > WALL_USE_TERA_WURFL) {
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > require_once(dirname(__FILE__) .
                                                > > > > '/tera-wurfl/tera_wurfl_config.php');
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > so you just need to change line 16 so it points to the
                                                > > new
                                                > > > > tera wurfl
                                                > > > > > > > > > > > config file, like this:
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > where the subdirectory /var/www/html/terawurfl2/ is where
                                                > > > > ever you have
                                                > > > > > > > > > > > installed TeraWurfl 2 on your system.
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > and obviously line 12 in wall_prepend.php should already
                                                > > say:
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > define('WALL_USE_TERA_WURFL', true);
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > Think that's it - all the other commands, functions etc
                                                > > > > should work the
                                                > > > > > > > > > > > same.
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > Alex
                                                > > > > > > > > > > >
                                                > > > > > > > > > > >
                                                > > > > > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>
                                                > > <wmlprogramming%40yahoogroups.com>
                                                > > > > <wmlprogramming%40yahoogroups.com><wmlprogramming%
                                                > > > > > > > > > 40yahoogroups.com>,
                                                > > > > > > > > >
                                                > > > > > > > > > > > "david_salgado8" <david@> wrote:
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > > Hi Steve
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > > > I'm working on RC3 tonight - I've changed all the
                                                > > > > short_open_tag
                                                > > > > > > > > > uses
                                                > > > > > > > > > > > in the
                                                > > > > > > > > > > > > > code so you no longer need to have that option turned
                                                > > on
                                                > > > > in PHP.
                                                > > > > > > > > > I've
                                                > > > > > > > > > > > also
                                                > > > > > > > > > > > > > added a cache browser that lets you see what devices
                                                > > are
                                                > > > > in your
                                                > > > > > > > > > cache
                                                > > > > > > > > > > > and
                                                > > > > > > > > > > > > > all their capabilities. I'm working on the WALL4PHP
                                                > > > > compatibility
                                                > > > > > > > > > right
                                                > > > > > > > > > > > now
                                                > > > > > > > > > > > > > - can you tell me exactly what you needed to change?
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > > Assuming they're the same changes I had to make to
                                                > > > > integrate
                                                > > > > > > > > > Terawurfl 2
                                                > > > > > > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and
                                                > > > > wall_prepend.php
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > > Below is a patch for the changes I had to make. NB: I
                                                > > took
                                                > > > > out the
                                                > > > > > > > > > > > conditional logic, so the patch below only works as is if
                                                > > > > you're using
                                                > > > > > > > > > > > Terawurfl.
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > > All the best
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > > David
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php
                                                > > > > b/www/Wall4PHP-1.1/Wall.php
                                                > > > > > > > > > > > > index 6efa4ea..a131b73 100644
                                                > > > > > > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
                                                > > > > > > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
                                                > > > > > > > > > > > > @@ -92,11 +92,7 @@ class Wall {
                                                > > > > > > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA'] :
                                                > > > > > > > > > > > getenv('HTTP_USER_AGENT');
                                                > > > > > > > > > > > > }
                                                > > > > > > > > > > > > require_once(WURFL_CLASS_FILE);
                                                > > > > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
                                                > > > > WALL_USE_TERA_WURFL) {
                                                > > > > > > > > > > > > - $this->wurfl = new tera_wurfl();
                                                > > > > > > > > > > > > - } else {
                                                > > > > > > > > > > > > - $this->wurfl = new wurfl_class();
                                                > > > > > > > > > > > > - }
                                                > > > > > > > > > > > > + $this->wurfl = new TeraWurfl();
                                                > > > > > > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                                                > > > > > > > > > > > > ob_start(Array($this, '_obCallBack'));
                                                > > > > > > > > > > > > register_shutdown_function(Array($this,
                                                > > '_obEndFlush'));
                                                > > > > > > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                                                > > > > > > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
                                                > > > > > > > > > > > > index 2753bfe..c5894be 100644
                                                > > > > > > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                                                > > > > > > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                                                > > > > > > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                                                > > > > > > > > > > > > # Notice: Constant LOG_LEVEL already defined in
                                                > > > > > > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
                                                > > > > > > > > > > > > ### define('LOG_LEVEL', 0);
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
                                                > > > > > > > > > > > > - define('WALL_USE_TERA_WURFL', false);
                                                > > > > > > > > > > > > -
                                                > > > > > > > > > > > > - # Configuration of PHP Tools or Tera WURFL by Steve
                                                > > > > Kamerman
                                                > > > > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
                                                > > > > WALL_USE_TERA_WURFL) {
                                                > > > > > > > > > > > > - require_once(dirname(__FILE__) .
                                                > > > > > > > > > '/tera-wurfl/tera_wurfl_config.php');
                                                > > > > > > > > > > > > - } else {
                                                > > > > > > > > > > > > - require_once(dirname(__FILE__) .
                                                > > > > '/wurfl/wurfl_config.php');
                                                > > > > > > > > > > > > - }
                                                > > > > > > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
                                                > > > > > > > > > > > > + require_once(dirname(__FILE__) .
                                                > > > > '../terawurfl/TeraWurfl.php');
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > > # For debug purporses. If you see following line
                                                > > > > uncommented, delete
                                                > > > > > > > > > it
                                                > > > > > > > > > > > or comment
                                                > > > > > > > > > > > > # it out. This is needed only, if Wall.php and Wall
                                                > > > > directory resides
                                                > > > > > > > > > > > outside
                                                > > > > > > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                                                > > > > > > > > > > > > $wall = new Wall();
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > > > }
                                                > > > > > > > > > > > > -?>
                                                > > > > > > > > > > > > \ No newline at end of file
                                                > > > > > > > > > > > > +?>
                                                > > > > > > > > > > > >
                                                > > > > > > > > > > >
                                                > > > > > > > > > > >
                                                > > > > > > > > > > >
                                                > > > > > > > > > >
                                                > > > > > > > > >
                                                > > > > > > > > >
                                                > > > > > > > > >
                                                > > > > > > > >
                                                > > > > > > >
                                                > > > > > > >
                                                > > > > > >
                                                > > > > >
                                                > > > >
                                                > > > >
                                                > > > >
                                                > > >
                                                > >
                                                > >
                                                > >
                                                >


                                              • s3thj
                                                This becomes more and more of an issue the more I think about it. A lot of WURFLs capability list pertain to the browsers abilities (as opposed to device
                                                Message 23 of 30 , Nov 19, 2009
                                                View Source
                                                • 0 Attachment
                                                  This becomes more and more of an
                                                  issue the more I think about it.
                                                  A lot of WURFLs capability list pertain to the browsers abilities (as opposed to device specs). So its important for browser specific capabilities to be known, as much as it is important to know what device the browser is running on.

                                                  I don't know if the Java and PHP API have a way of dealing with this but I would suggest a split in the capabilities according to which user-agent most accurately defines the capability . Like resolution_width should always be determined by the device user-agent and html_level by the browsers user-agent.

                                                  Your thoughts?

                                                  --- In wmlprogramming@yahoogroups.com, Steve Kamerman <stevekamerman@...> wrote:
                                                  >
                                                  > Seth, I'm also maintaining WALL4PHP on my site since some things needed to
                                                  > be changed to support Tera-WURFL 2.x, so I went ahead and made those changes
                                                  > for you. WALL4PHP now uses Tera-WURFL's User Agent detection to determine
                                                  > the User Agent. It's available from www.tera-wurfl.com, or you can use this
                                                  > direct link:
                                                  >
                                                  > http://www.teratechnologies.net/stats/phpmyvisites.php?url=http%3A//www.tera-wurfl.com/WALL4PHP-1.1_Tera-Wurfl2_v1.1.zip&id=4&pagename=FILE:WALL4PHP%201.1%20Tera-WURFL%202.x_v1.1
                                                  >
                                                  > Thanks,
                                                  >
                                                  > Steve Kamerman
                                                  >
                                                  > > > > > > > > > > > > get into Iraq I'm sure I will have much more free time!
                                                  > > The
                                                  > > > > new
                                                  > > > > > > version
                                                  > > > > > > > > > > > > fixes a couple bugs and has a cache browser that allows
                                                  > > you
                                                  > > > > to
                                                  > > > > > > see what
                                                  > > > > > > > > > > > > devices are hitting your site and their capabilities.
                                                  > > I'll
                                                  > > > > try
                                                  > > > > > > to get it
                                                  > > > > > > > > > > > up
                                                  > > > > > > > > > > > > on the site tomorrow if I have time.
                                                  > > > > > > > > > > > > Thanks,
                                                  > > > > > > > > > > > >
                                                  > > > > > > > > > > > > Steve Kamerman
                                                  > > > > > > > > > > > >
                                                  > > > > > > > > > > > > On Mon, Oct 19, 2009 at 9:56 AM, ajck73 <alex@> wrote:
                                                  > > > > > > > > > > > >
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > This reply is effectively repeating what David
                                                  > > (thanks
                                                  > > > > > > David!) just
                                                  > > > > > > > > > > > wrote
                                                  > > > > > > > > > > > > > (I think - I haven't checked his code) but it may be
                                                  > > a
                                                  > > > > > > littler clearer
                                                  > > > > > > > > > > > for
                                                  > > > > > > > > > > > > > some?
                                                  > > > > > > > > > > > > > Juanto emailed me direct and this was my reply to
                                                  > > him:
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > There are a couple of small changes required. First
                                                  > > > > install
                                                  > > > > > > the
                                                  > > > > > > > > > > > Wall4PHP
                                                  > > > > > > > > > > > > > version bundled with TeraWURFL 1.5.2 (not 2.0 RC2)
                                                  > > that
                                                  > > > > you
                                                  > > > > > > can get
                                                  > > > > > > > > > > > from the
                                                  > > > > > > > > > > > > > terawurfl site. Then install TeraWURFL RC2 from the
                                                  > > > > terawurfl
                                                  > > > > > > site.
                                                  > > > > > > > > > > > Then in
                                                  > > > > > > > > > > > > > the Wall4php code make the following changes:
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > 1.) In Wall.php at line 94 you need to comment out
                                                  > > > > > > > > > > > > > $this->wurfl = new TeraWurfl();
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > 3.) In wall_prepend.php, lines 15 and 16 currently
                                                  > > look
                                                  > > > > like:
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > if (defined('WALL_USE_TERA_WURFL') &&
                                                  > > > > WALL_USE_TERA_WURFL) {
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > require_once(dirname(__FILE__) .
                                                  > > > > > > '/tera-wurfl/tera_wurfl_config.php');
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > so you just need to change line 16 so it points to
                                                  > > the
                                                  > > > > new
                                                  > > > > > > tera wurfl
                                                  > > > > > > > > > > > > > config file, like this:
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > >
                                                  > > require_once('/var/www/html/terawurfl2/TeraWurfl.php');
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > where the subdirectory /var/www/html/terawurfl2/ is
                                                  > > where
                                                  > > > > > > ever you have
                                                  > > > > > > > > > > > > > installed TeraWurfl 2 on your system.
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > and obviously line 12 in wall_prepend.php should
                                                  > > already
                                                  > > > > say:
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > define('WALL_USE_TERA_WURFL', true);
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > Think that's it - all the other commands, functions
                                                  > > etc
                                                  > > > > > > should work the
                                                  > > > > > > > > > > > > > same.
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > Alex
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > --- In wmlprogramming@yahoogroups.com<wmlprogramming%40yahoogroups.com>
                                                  > > <wmlprogramming%40yahoogroups.com>
                                                  > > > > <wmlprogramming%40yahoogroups.com>
                                                  > > > > > > <wmlprogramming%40yahoogroups.com><wmlprogramming%
                                                  > > > > > > > > > > > 40yahoogroups.com>,
                                                  > > > > > > > > > > >
                                                  > > > > > > > > > > > > > "david_salgado8" <david@> wrote:
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > > Hi Steve
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > > > I'm working on RC3 tonight - I've changed all the
                                                  > > > > > > short_open_tag
                                                  > > > > > > > > > > > uses
                                                  > > > > > > > > > > > > > in the
                                                  > > > > > > > > > > > > > > > code so you no longer need to have that option
                                                  > > turned
                                                  > > > > on
                                                  > > > > > > in PHP.
                                                  > > > > > > > > > > > I've
                                                  > > > > > > > > > > > > > also
                                                  > > > > > > > > > > > > > > > added a cache browser that lets you see what
                                                  > > devices
                                                  > > > > are
                                                  > > > > > > in your
                                                  > > > > > > > > > > > cache
                                                  > > > > > > > > > > > > > and
                                                  > > > > > > > > > > > > > > > all their capabilities. I'm working on the
                                                  > > WALL4PHP
                                                  > > > > > > compatibility
                                                  > > > > > > > > > > > right
                                                  > > > > > > > > > > > > > now
                                                  > > > > > > > > > > > > > > > - can you tell me exactly what you needed to
                                                  > > change?
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > > Assuming they're the same changes I had to make to
                                                  > > > > > > integrate
                                                  > > > > > > > > > > > Terawurfl 2
                                                  > > > > > > > > > > > > > and Wall4PHP-1.1, I had to tweak Wall.php and
                                                  > > > > > > wall_prepend.php
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > > Below is a patch for the changes I had to make. NB:
                                                  > > I
                                                  > > > > took
                                                  > > > > > > out the
                                                  > > > > > > > > > > > > > conditional logic, so the patch below only works as
                                                  > > is if
                                                  > > > > > > you're using
                                                  > > > > > > > > > > > > > Terawurfl.
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > > All the best
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > > David
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > > diff --git a/www/Wall4PHP-1.1/Wall.php
                                                  > > > > > > b/www/Wall4PHP-1.1/Wall.php
                                                  > > > > > > > > > > > > > > index 6efa4ea..a131b73 100644
                                                  > > > > > > > > > > > > > > --- a/www/Wall4PHP-1.1/Wall.php
                                                  > > > > > > > > > > > > > > +++ b/www/Wall4PHP-1.1/Wall.php
                                                  > > > > > > > > > > > > > > @@ -92,11 +92,7 @@ class Wall {
                                                  > > > > > > > > > > > > > > $this->ua = $ua = isset($_GET['UA']) ? $_GET['UA']
                                                  > > :
                                                  > > > > > > > > > > > > > getenv('HTTP_USER_AGENT');
                                                  > > > > > > > > > > > > > > }
                                                  > > > > > > > > > > > > > > require_once(WURFL_CLASS_FILE);
                                                  > > > > > > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
                                                  > > > > > > WALL_USE_TERA_WURFL) {
                                                  > > > > > > > > > > > > > > - $this->wurfl = new tera_wurfl();
                                                  > > > > > > > > > > > > > > - } else {
                                                  > > > > > > > > > > > > > > - $this->wurfl = new wurfl_class();
                                                  > > > > > > > > > > > > > > - }
                                                  > > > > > > > > > > > > > > + $this->wurfl = new TeraWurfl();
                                                  > > > > > > > > > > > > > > $this->wurfl->GetDeviceCapabilitiesFromAgent($ua);
                                                  > > > > > > > > > > > > > > ob_start(Array($this, '_obCallBack'));
                                                  > > > > > > > > > > > > > > register_shutdown_function(Array($this,
                                                  > > > > '_obEndFlush'));
                                                  > > > > > > > > > > > > > > diff --git a/www/Wall4PHP-1.1/wall_prepend.php
                                                  > > > > > > > > > > > > > b/www/Wall4PHP-1.1/wall_prepend.php
                                                  > > > > > > > > > > > > > > index 2753bfe..c5894be 100644
                                                  > > > > > > > > > > > > > > --- a/www/Wall4PHP-1.1/wall_prepend.php
                                                  > > > > > > > > > > > > > > +++ b/www/Wall4PHP-1.1/wall_prepend.php
                                                  > > > > > > > > > > > > > > @@ -8,15 +8,8 @@ if (!defined('WALL_INCLUDED')) {
                                                  > > > > > > > > > > > > > > # Notice: Constant LOG_LEVEL already defined in
                                                  > > > > > > > > > > > > > [..path..]/wurfl/wurfl_class.php on line 89
                                                  > > > > > > > > > > > > > > ### define('LOG_LEVEL', 0);
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > > - # Shall we use classic PHP Tools or Tera WURFL?
                                                  > > > > > > > > > > > > > > - define('WALL_USE_TERA_WURFL', false);
                                                  > > > > > > > > > > > > > > -
                                                  > > > > > > > > > > > > > > - # Configuration of PHP Tools or Tera WURFL by
                                                  > > Steve
                                                  > > > > > > Kamerman
                                                  > > > > > > > > > > > > > > - if (defined('WALL_USE_TERA_WURFL') &&
                                                  > > > > > > WALL_USE_TERA_WURFL) {
                                                  > > > > > > > > > > > > > > - require_once(dirname(__FILE__) .
                                                  > > > > > > > > > > > '/tera-wurfl/tera_wurfl_config.php');
                                                  > > > > > > > > > > > > > > - } else {
                                                  > > > > > > > > > > > > > > - require_once(dirname(__FILE__) .
                                                  > > > > > > '/wurfl/wurfl_config.php');
                                                  > > > > > > > > > > > > > > - }
                                                  > > > > > > > > > > > > > > + # Configuration of Tera WURFL by Steve Kamerman
                                                  > > > > > > > > > > > > > > + require_once(dirname(__FILE__) .
                                                  > > > > > > '../terawurfl/TeraWurfl.php');
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > > # For debug purporses. If you see following line
                                                  > > > > > > uncommented, delete
                                                  > > > > > > > > > > > it
                                                  > > > > > > > > > > > > > or comment
                                                  > > > > > > > > > > > > > > # it out. This is needed only, if Wall.php and Wall
                                                  > > > > > > directory resides
                                                  > > > > > > > > > > > > > outside
                                                  > > > > > > > > > > > > > > @@ -35,4 +28,4 @@ if (!defined('WALL_INCLUDED')) {
                                                  > > > > > > > > > > > > > > $wall = new Wall();
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > > > }
                                                  > > > > > > > > > > > > > > -?>
                                                  > > > > > > > > > > > > > > \ No newline at end of file
                                                  > > > > > > > > > > > > > > +?>
                                                  > > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > > >
                                                  > > > > > > > > > > > >
                                                  > > > > > > > > > > >
                                                  > > > > > > > > > > >
                                                  > > > > > > > > > > >
                                                  > > > > > > > > > >
                                                  > > > > > > > > >
                                                  > > > > > > > > >
                                                  > > > > > > > >
                                                  > > > > > > >
                                                  > > > > > >
                                                  > > > > > >
                                                  > > > > > >
                                                  > > > > >
                                                  > > > >
                                                  > > > >
                                                  > > > >
                                                  > > >
                                                  > >
                                                  > >
                                                  > >
                                                  >
                                                • Luca Passani
                                                  ... I have been playing with the idea of enhancing the API so that it can differentiate between capabilities which depend on the browser and capabilities
                                                  Message 24 of 30 , Nov 19, 2009
                                                  View Source
                                                  • 0 Attachment
                                                    s3thj wrote:
                                                    > This becomes more and more of an
                                                    > issue the more I think about it.
                                                    > A lot of WURFLs capability list pertain to the browsers abilities (as opposed to device specs). So its important for browser specific capabilities to be known, as much as it is important to know what device the browser is running on.
                                                    >
                                                    > I don't know if the Java and PHP API have a way of dealing with this but I would suggest a split in the capabilities according to which user-agent most accurately defines the capability . Like resolution_width should always be determined by the device user-agent and html_level by the browsers user-agent.
                                                    >
                                                    > Your thoughts?
                                                    >

                                                    I have been playing with the idea of "enhancing" the API so that it can
                                                    differentiate between capabilities which depend on the browser and
                                                    capabilities which depend on the device.

                                                    I have some ideas about how to do it, but this would impact the existing
                                                    API heavily enough that I want to keep thinking about it a little bit longer

                                                    Thanks

                                                    Luca
                                                  • JOSE MANUEL CANTERA FONSECA
                                                    De: wmlprogramming@yahoogroups.com [mailto:wmlprogramming@yahoogroups.com] En nombre de Luca Passani Enviado el: jueves, 19 de noviembre de 2009 15:14 Para:
                                                    Message 25 of 30 , Nov 19, 2009
                                                    View Source
                                                    • 0 Attachment

                                                       

                                                       

                                                      De: wmlprogramming@yahoogroups.com [mailto:wmlprogramming@yahoogroups.com] En nombre de Luca Passani
                                                      Enviado el: jueves, 19 de noviembre de 2009 15:14
                                                      Para: wmlprogramming@yahoogroups.com
                                                      Asunto: Re: [wmlprogramming] Re: wall4php and new APIS

                                                      At last Luca, it seems you are aware of this necessity, let me say that better later than never :)

                                                       

                                                      You can consider to migrate to the DDR Simple API, it supports this concept very naturally and easy

                                                       

                                                      Best Regards

                                                      s3thj wrote:

                                                      > This becomes more and more of an
                                                      > issue the more I think about it.
                                                      > A lot of WURFLs capability list pertain to the browsers abilities (as
                                                      opposed to device specs). So its important for browser specific capabilities to be known, as much as it is important to know what device the browser is running on.
                                                      >
                                                      > I don't know if the Java and PHP API have a way of dealing with this but I
                                                      would suggest a split in the capabilities according to which user-agent most accurately defines the capability . Like resolution_width should always be determined by the device user-agent and html_level by the browsers user-agent.
                                                      >
                                                      > Your thoughts?
                                                      >

                                                      I have been playing with the idea of "enhancing" the API so that it can
                                                      differentiate between capabilities which depend on the browser and
                                                      capabilities which depend on the device.

                                                      I have some ideas about how to do it, but this would impact the existing
                                                      API heavily enough that I want to keep thinking about it a little bit longer

                                                      Thanks

                                                      Luca

                                                    • Luca Passani
                                                      Last time I checked all DDRs were relying on WURFL data and WURFL experience, so I am not sure what WURFL has to learn from DDRs that came after it. Luca
                                                      Message 26 of 30 , Nov 19, 2009
                                                      View Source
                                                      • 0 Attachment
                                                        Last time I checked all DDRs were relying on WURFL data and WURFL
                                                        experience, so I am not sure what WURFL has to learn from DDRs that came
                                                        after it.

                                                        Luca

                                                        JOSE MANUEL CANTERA FONSECA wrote:
                                                        >
                                                        > *De:* wmlprogramming@yahoogroups.com
                                                        > [mailto:wmlprogramming@yahoogroups.com] *En nombre de *Luca Passani
                                                        > *Enviado el:* jueves, 19 de noviembre de 2009 15:14
                                                        > *Para:* wmlprogramming@yahoogroups.com
                                                        > *Asunto:* Re: [wmlprogramming] Re: wall4php and new APIS
                                                        >
                                                        > At last Luca, it seems you are aware of this necessity, let me say
                                                        > that better later than never :)
                                                        >
                                                        > You can consider to migrate to the DDR Simple API, it supports this
                                                        > concept very naturally and easy
                                                        >
                                                        >
                                                        >
                                                        > Best Regards
                                                        >
                                                        > s3thj wrote:
                                                        > > This becomes more and more of an
                                                        > > issue the more I think about it.
                                                        > > A lot of WURFLs capability list pertain to the browsers abilities
                                                        > (as opposed to device specs). So its important for browser specific
                                                        > capabilities to be known, as much as it is important to know what
                                                        > device the browser is running on.
                                                        > >
                                                        > > I don't know if the Java and PHP API have a way of dealing with this
                                                        > but I would suggest a split in the capabilities according to which
                                                        > user-agent most accurately defines the capability . Like
                                                        > resolution_width should always be determined by the device user-agent
                                                        > and html_level by the browsers user-agent.
                                                        > >
                                                        > > Your thoughts?
                                                        > >
                                                        >
                                                        > I have been playing with the idea of "enhancing" the API so that it can
                                                        > differentiate between capabilities which depend on the browser and
                                                        > capabilities which depend on the device.
                                                        >
                                                        > I have some ideas about how to do it, but this would impact the existing
                                                        > API heavily enough that I want to keep thinking about it a little bit
                                                        > longer
                                                        >
                                                        > Thanks
                                                        >
                                                        > Luca
                                                        >
                                                        >
                                                        >
                                                        >
                                                      Your message has been successfully submitted and would be delivered to recipients shortly.