Andy Kopciuch's Blog
Thursday, February 17, 2005
  XML, Mac OS X &Neo Citron
I recently found a PEAR module for PHP called XML_Serializer, and XML_Unserialiser. What a fantastic module. These classes utilize PHP native type calls to build and format XML strings for you. It's highly configurable (what to use for indents, line feeds, headings, type hints etc.). The XML is spot on exactly what I expect. The object just takes your data object (simple array, class, array of objects) and spits out XML. It's neat, clean, and simple. It also provides the unserializer in which you pass it XML and will return to you native PHP objects containing data. Pretty slick stuff.

I also did some limited investigation into foxpro web services through SOAP. What an attrocity that is! It looks like a ton of work to set it up, and the XML sent is "whacky". I think we'll just end up building a custom com object that will handle the parsing of simple XML. It's way easier than a SOAP setup. Should do the trick nicely.

This week I've been introduced to Mac OS X 10.3. It's pretty slick I must say. I'll also admit that I've been using windows much to much for my liking, so anything with a built in ls command scores huge points. ;-) We have a working CVS pserver, and a working installation of PostgreSQL. We just need to set up Apache, and PHP properly. 10.3 comes with a stock apache 1.3.33 (I think), so an upgrade to apache 2 is in order. Overall the system is fine to work on. If you have worked on one *NIX system, you can pretty much make your way around any other system. I thought it was based on Debian, turns out to be the Mach Kernel. It's a _HUGE_ step up from windows any which way you dice the turkey gizzards.

Getting the data transformation to work from MS_SQL might be a little more tricky. I've got the ODBC connection working, and some things are moved accross. I should have known it would completely barf all over the MS "uniqueidentifier" datatypes. It attempts to create them as "date" types. hahaha. I think I'll have to re-create the schema first, and then just copy the data over separately. That will be my task tomorrow I believe. Fun Fun Fun.

The OS X packaging community seems rather sporadic to me. Several unique packages are available, that may or may not coincide with the stock apple packages, or whatever other package you have installed. This coming from a guy who a year ago still installed everything from source. I guess I have just become to accustomed to a system with nice packaging layouts (like SuSE). I'm too spoiled and now to compile apache from source, and have one GINORMOUS httpd.conf file just seems wrong. I suppose I could make it work smartly, but I'm also lazy. ;-)

I've been feeling under the weather for a couple of days. Actually I feel like ASS! But my new favorite friend is Neo-Citron with Rye. It's totally wicked! you can't even taste the whiskey in it. I prefer the lemon and rye over the cherry flavoured Neo-Citron. But that's just me.
 
Comments: Post a Comment



<< Home
The Jolly Smoking Computer Programmer

ARCHIVES
October 2004 / November 2004 / December 2004 / January 2005 / February 2005 / March 2005 / April 2005 / May 2005 / June 2005 / July 2005 / August 2005 / September 2005 / October 2005 / November 2005 / December 2005 / January 2006 / February 2006 / March 2006 / April 2006 / May 2006 / June 2006 / July 2006 / August 2006 / September 2006 / October 2006 / November 2006 / December 2006 / January 2007 / February 2007 / March 2007 / April 2007 / May 2007 / June 2007 / July 2007 / August 2007 / September 2007 / October 2007 / November 2007 / December 2007 / January 2008 / February 2008 / March 2008 / May 2008 / August 2008 / October 2008 / December 2008 / January 2009 / February 2009 / March 2009 / May 2009 / August 2009 /


Powered by Blogger