Search found 13 matches

by keith
Thu Jun 27, 2013 1:45 pm
Forum: Miscellaneous
Topic: PHP API method to extract wurfl.zip?
Replies: 2
Views: 35230

Re: PHP API method to extract wurfl.zip?

I think I'm just going to run something like this in a php via comand line to instantiate WURFL and force the unzip process: exec("touch wurfl.zip"); // this will change the timestamp and WURFL will assume it is new and unzip $wurflConfig = new WURFL_Configuration_InMemoryConfig(); $wurflConfig->per...
by keith
Wed Jun 26, 2013 12:11 pm
Forum: Miscellaneous
Topic: PHP API method to extract wurfl.zip?
Replies: 2
Views: 35230

PHP API method to extract wurfl.zip?

Hi, I'm working out some kinks in my deploy process. I intend to set 'allowReload(true)' since I will be updating the wurfl.zip on a regular basis. We have multiple servers in a pool that will need the persistence data to be available at once. Is there a programmatic way for me to force WURFL to ext...
by keith
Fri Jun 07, 2013 11:41 am
Forum: PHP API
Topic: Should wurfl.zip extract every time??
Replies: 16
Views: 96911

Re: Should wurfl.zip extract every time??

Ah, good idea about touch. That would be a really easy way to force testing. Thanks again for the help!
by keith
Thu Jun 06, 2013 4:56 pm
Forum: PHP API
Topic: Should wurfl.zip extract every time??
Replies: 16
Views: 96911

Re: Should wurfl.zip extract every time??

Hey Steve, I just rebooted the dev memcache instance. Then made an API call, the first one takes a while as it extracts the persistence data. No errors and everything worked fine on subsequent calls. So as as test I decided to clear out the persistence and cache directories on the disk and this is w...
by keith
Wed Jun 05, 2013 1:33 pm
Forum: PHP API
Topic: Should wurfl.zip extract every time??
Replies: 16
Views: 96911

Re: Should wurfl.zip extract every time??

Steve, I did some tests and the long write/extraction seems to be gone now even in cache 'file' mode. I've cleared the cache and persistence directories before each test. Is this expected to bypass entirely with memcache? Is data supposed to write to 'cache' or 'persistence' even in memcache mode? A...
by keith
Wed Jun 05, 2013 9:52 am
Forum: PHP API
Topic: Should wurfl.zip extract every time??
Replies: 16
Views: 96911

Re: Should wurfl.zip extract every time??

Thanks Steve! I will test it out today and let you know.
by keith
Tue Jun 04, 2013 11:40 am
Forum: PHP API
Topic: Should wurfl.zip extract every time??
Replies: 16
Views: 96911

Re: Should wurfl.zip extract every time??

Thanks! For now I will stick to 'file' until a solution is available.
by keith
Mon Jun 03, 2013 3:49 pm
Forum: PHP API
Topic: Should wurfl.zip extract every time??
Replies: 16
Views: 96911

Re: Should wurfl.zip extract every time??

Thanks Steve,

In our developer environment we use Amazon ElastiCache. In production we use our own cluster of machines with memcache installed on them.

Keith
by keith
Mon Jun 03, 2013 10:37 am
Forum: PHP API
Topic: Should wurfl.zip extract every time??
Replies: 16
Views: 96911

Re: Should wurfl.zip extract every time??

Hey kamermans , here's pretty much what I'm doing minus actual file paths and memcache host. It seems that something si wrong with the memcache implementation and I'm not really sure how to troubleshoot. require_once 'wurfl/Application.php'; class MYWURFLFactory extends WURFL_WURFLManagerFactory{ pu...
by keith
Fri May 31, 2013 3:26 pm
Forum: PHP API
Topic: Should wurfl.zip extract every time??
Replies: 16
Views: 96911

Re: Should wurfl.zip extract every time??

UPDATE:

It seems that the .zip extracts every time if I am using memcache. Anyone know anything about this?

$wurflConfig->cache('memcache', array('host' => my.host.foo));

If I switch this back to 'file' the .zip does not extract every time.
by keith
Fri May 31, 2013 1:31 pm
Forum: PHP API
Topic: Should wurfl.zip extract every time??
Replies: 16
Views: 96911

Re: Should wurfl.zip extract every time??

Hey, thanks for the reply. I think I tracked it down. It looks like the guy who was working on this the other day set the .zip path to an older version of this file. My config was pointing to: resource_file/wurfl-2.3.3.zip 1289038 May 29 11:16 wurfl-2.3.3.zip which contains: 20964986 11-08-12 12:27 ...
by keith
Thu May 30, 2013 4:34 pm
Forum: PHP API
Topic: Typo in example
Replies: 1
Views: 30312

Typo in example

I'm pretty sure there is a typo here shouldn't the is_mobile_device line read? $is_mobile_device = ($is_wireless || $is_tablet); $is_wireless = ($requestingDevice->getCapability('is_wireless_device') == 'true'); $is_smarttv = ($requestingDevice->getCapability('is_smarttv') == 'true'); $is_tablet = (...
by keith
Thu May 30, 2013 2:30 pm
Forum: PHP API
Topic: Should wurfl.zip extract every time??
Replies: 16
Views: 96911

Should wurfl.zip extract every time??

I'm testing out the example on http://wurfl.sourceforge.net/php_index.php Are we supposed to remove the following line after the initial execution? ... $wurflConfig->wurflFile($resourcesDir.'/wurfl.zip'); ... It seems that the files in the persistence directory are overwritten each time and this pro...