I have an empty Delphi ClientDataSet CDS File setup with all the Columns/Headers/Datatypes that I need. I want to use PHP to append an associative array into CDS rows. Is this possible?
The array could simply be:
{
1: {Name:Captain, Phone:18001234567}
2: {Name:Jack, Phone:18009876543}
3: {Name:Sparrow, Phone:18887892345}
}
I've selected PHP because I'm proficient with the language and my web server is a shared-linux host. Basically I cannot run Delphi here. I'm open to other options that could work in this environment. Thanks!
EDIT:
See the comments on this post for my resolution.
I recommend you to not write direct to the cds files.
Instead you can use a common xml for both applications (PHP and Delphi) and on the delphi side you load and save it using XML Transformation with TXmlTransformProvider and on the PHP side you just write it to the XML as you always do.
Take a look here on how to setup on delphi.
--UPDATE
If you realy need to change direct the cds file (using xml format) you can just add a new to the cds file considering the cds format is xml like this: