Skip to content

Instantly share code, notes, and snippets.

<?php
/*
* SphinxXMLFeed - efficiently generate XML for Sphinx's xmlpipe2 data adapter
* (c) 2009 Jetpack LLC http://jetpackweb.com
* From: http://jetpackweb.com/blog/2009/08/16/sphinx-xmlpipe2-in-php-part-ii/
* Here for prosperity
*/
class SphinxXMLFeed extends XMLWriter
{
private $fields = array();
<?php
/*
Changes III's unicode brackets into encoded unicode characters.
We have found this more reliable than using the pre-encoded values from the interface. The XRecord will give the bracket output.
This presumes you have your database in unicode in iii. iii can convert your database to unicode for you. call the helpdesk
If you see codes like {231} without the 'u' then you haven't converted or are entering them in old format
## OpenSRF on gentoo
* normal instructions
* apache2 config is httpd instead of what make install expects of apache2.conf
* DateTime from portage is masked on amd64. list for package.keywords:
dev-perl/DateTime-Format-ISO8601
dev-perl/DateTime-Format-Builder
dev-perl/DateTime-Format-Strptime