Are there any alternative tools or methods to access MS-Access data with PHP on a server with limited functionality?

When dealing with a server with limited functionality that restricts the use of ODBC drivers or other direct methods to access MS-Access data with PHP, an alternative approach is to use a PHP library like MDB Tools. MDB Tools allows you to read and write Microsoft Access databases without the need for ODBC drivers, making it a suitable solution for servers with limited capabilities.

<?php
// Include MDB Tools library
require_once('MDB2.php');

// Connect to the MS-Access database
$dsn = "mssql://username:password@server/database";
$db = MDB2::connect($dsn);

if (MDB2::isError($db)) {
    die("Error connecting to the database: " . $db->getMessage());
}

// Query the database
$query = "SELECT * FROM table_name";
$result = $db->query($query);

if (MDB2::isError($result)) {
    die("Error executing the query: " . $result->getMessage());
}

// Fetch and display the results
while ($row = $result->fetchRow()) {
    print_r($row);
}

// Close the database connection
$db->disconnect();
?>