Например, так
PHP код:
filePath = xInfo::directory(directoryType::Temp);
fileName = filePath + #CashInventExpFile ;
if (WinAPI::fileExists(filename))
WinAPI::deleteFile(filename);
dBF_Con = new CCADOConnection();
aDO = new CCADOCommand();
aDR = new CCADORecordset();
dBF_Con.open("Driver={Microsoft dBase Driver (*.dbf)};");
ADO.activeConnection(dBF_Con);
if (dBF_Con)
{
cmdText = " CREATE TABLE " + fileName + " (CODE char(13), SH_CODE char(13), NAME char(90), PRICE numeric, DIVNUM char(2), RES numeric)";
ADO.commandText(cmdText);
ADR = ADO.execute();
}