Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Cyril
Faeneror Lupus
|
Posted - 2010.12.10 13:36:00 -
[1]
Just wondering if there is any documentation as to what classes, methods, and parameters there are or if I just need to look at the comments in the code. I'm looking into using this in a project I'm working on and haven't had the time yet to really look at everything. I have it pulling the global data already and I'm liking it a lot. -----------------------------------------
insert witty sig here. |

Cyril
Hounds Of War Talos Coalition
|
Posted - 2010.12.11 19:19:00 -
[2]
I see now where I went wrong. I just set up the subversion and didn't check released files. Thanks. -----------------------------------------
insert witty sig here. |

Cyril
Hounds Of War Talos Coalition
|
Posted - 2011.01.06 05:38:00 -
[3]
Just wanted to say I was having good progress using Yapeal for backend data for a site I'm working on. I'm running into a bit of an issue with how hard it hits the CPU when it runs as a cron. I've added "nice -n 19" to the front of it and that has reduced the problem but it is still enough that I'm getting CPU throttled 15 seconds out of every hour or so. (cron runs every 3 minutes)
Anyone have any suggestions/experience managing CPU loading of cron based php files? -----------------------------------------
insert witty sig here. |

Cyril
Hounds Of War Talos Coalition
|
Posted - 2011.01.22 14:11:00 -
[4]
Any eta on a fix for the older versions of php? I just updated trunk. If not I guess I'll roll back a few builds. I have also contacted my hosting company to see if they can update to 5.3. -----------------------------------------
insert witty sig here. |

Cyril
Hounds Of War Talos Coalition
|
Posted - 2011.01.22 17:22:00 -
[5]
Ok I think I have a work around for now... It isn't exactly pretty code and can't test it as my hosing box can't connect to the API server right now, due to some type of routing problem. Here is my diff if anyone wants to test it out.
Index: FilterFileFinder.php =================================================================== --- FilterFileFinder.php(revision 1141) +++ FilterFileFinder.php(working copy) @@ -81,13 +81,22 @@ $this->match = $match; $this->type = $type; $this->piece = $piece; - $flat = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)); - // Set flags to know working settings. - $flags = FilesystemIterator::CURRENT_AS_FILEINFO - | FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::SKIP_DOTS - | FilesystemIterator::UNIX_PATHS; - $flat->setFlags($flags); - parent::__construct($flat); + if (!defined('PHP_VERSION_ID')) { + $version = explode('.', PHP_VERSION); + define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2])); + } + if (PHP_VERSION_ID >= 50300){ + $flat = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)); + // Set flags to know working settings. + $flags = FilesystemIterator::CURRENT_AS_FILEINFO + | FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::SKIP_DOTS + | FilesystemIterator::UNIX_PATHS; + $flat->setFlags($flags); + parent::__construct($flat); + } else { + $flags = 0 | 0 | 4096 | 8192; + parent::__construct(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, $flags))); + } }// function constructor /** * Required method to make filter work.
-----------------------------------------
insert witty sig here. |
|
|