mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-08-19 11:43:16 +02:00
🎨 Added .env var for file name in extract.php
This commit is contained in:
@@ -7,7 +7,7 @@ require_once('../class/dotEnv.php');
|
||||
|
||||
(new DotEnv(__DIR__ . '/../.env'))->load();
|
||||
|
||||
if (($handle = fopen("2021-09-15-theses.csv", "r")) !== FALSE) {
|
||||
if (($handle = fopen(getenv('FILE'), "r")) !== FALSE) {
|
||||
|
||||
$pdo_obj = new conf();
|
||||
$pdo = $pdo_obj->getPDO();
|
||||
|
||||
Reference in New Issue
Block a user