Author Topic

Willie Seabrook

Wednesday 21 January 2004 3:21:12 am

Comment39682

Hi Alex,

I've had the nightmare job of consolodating and importing data from multiple mysql database tables along with various filemaker databases into ez. Previously all the data was syncd manually, (which means that there was data inconsistancy which is whole other problem altogether)

I havn't done anything with regards to text files though. Although my code gets all the data into a consistant associative array format:

$array[*ezcontentclassidentifer*][*value*]

where ezcontentclassidentifier is the string id (not the numerical id) of the content object attribute.

So working from there it takes care of pretty much everything.

Your first stage would be to get the text file data into an associatve array format (which will be a piece of cake). Then you should create ez objects from there.

Once I have my code finished (it still has many hickups) I'll release it.

The interesting problem I have had to face is keeping Exponential and filemaker synchronized. An update in filemaker must appear on the website an update on the website must appear in filemaker. Its messy I know but filemaker is entrenched in their system and moving from it would have been impossible. I keep them syncd by:

ez -> filemaker: workflow publish events
filemaker -> ez: cronjob run every x minutes.
Comparing versions, timestamps and values.

Could you tell us more on the nature of your problem. Is the text file simply feeding ez, or will ez also feed the text file?

IE is data *appended* to the text file (so that you'll have objects that need to be *updated* and also you'll have to create *new* objects each time the script is run) or is the data file being overwritten each time so that the only task of the script will be to *create* new ez objects and publish them?

willie dot seabrook at levity dot co dot nz