note 50897 added to ref.com
| From: | GianlucaGIMIGLIANO at osu1 dot php dot net | Date: | Sun, 13 Mar 2005 17:17:15 +0000 |
| Subject: | note 50897 added to ref.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-86360@lists.php.net to get a copy of this message | ||
// NOTE: Using COM with windows XP with apache as a service
// - Compact a Microsoft Access Database
// Be careful $sourceFile and $destFile
//cannot be the same and
// $destFile must be unexistent
Function CompactMSAccess($sourceFile,$destFile) {
$com = new COM("JRO.JetEngine");
$com->CompactDatabase("Data Source=$sourceFile",
"Data Source=$destFile");
$com->Release();
$com=null;
return is_file($destFile);
//if $destFile exists it's a compact DB
}
CompactMSAccess('C:\directory\source.mdb',
'C:\directory\compact.mdb');
----
Manual Page -- http://www.php.net/manual/en/ref.com.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50897
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50897&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50897&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50897&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50897&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50897&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50897&report=yes
Search -- http://master.php.net/manage/user-notes.php