I'm trying to connect my Access database with PHP, but it's not finding the way. I did not want to put the path relative to the HD because I host my page on a host (it uses Linux) and so I wanted to put the path relative to the page itself.
My code looks like this:
// Add arquivo e a extensão
$database_name = $_SERVER["DOCUMENT_ROOT"] . "_assets\db.accdb";
// Verifica se o arquivo existe.
if (!file_exists($database_name )) {
die("Não foi possível encontrar o arquivo.");
}