Update DatabaseArticleManager.php
This commit is contained in:
@@ -18,11 +18,11 @@ class DatabaseArticleManager implements ArticleManagerDAO {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
if (!file_exists("../../db/articles.db")) {
|
||||
if (!file_exists("/db/articles.db")) {
|
||||
try {
|
||||
$user = 'root';
|
||||
$pw = null;
|
||||
$dsn = 'sqlite:../../db/articles.db';
|
||||
$dsn = 'sqlite:/db/articles.db';
|
||||
$db = new PDO($dsn, $user, $pw);
|
||||
|
||||
$db->exec("
|
||||
|
||||
Reference in New Issue
Block a user