comment out test_write file

This commit is contained in:
Felix Ivo 2025-07-07 10:27:19 +02:00
parent aabd6288fe
commit 9db4d93ce3

View File

@ -2,15 +2,15 @@
use ppa\Model\NotesModel;
include dirname(__DIR__).'/header.phtml';
// Test write permissions
// This is the directory we will upload files to.
$uploadDir = $_SERVER['DOCUMENT_ROOT'] . '/EIANotesApp/Uploads/';
if (!file_exists($uploadDir)) {
mkdir($uploadDir, 0777, true);
}
$testFile = $uploadDir . 'test_write.txt';
$testContent = 'Test write operation at ' . date('Y-m-d H:i:s');
$writeResult = file_put_contents($testFile, $testContent);
//// Test write permissions
//// This is the directory we will upload files to.
//$uploadDir = $_SERVER['DOCUMENT_ROOT'] . '/EIANotesApp/Uploads/';
//if (!file_exists($uploadDir)) {
// mkdir($uploadDir, 0777, true);
//}
//$testFile = $uploadDir . 'test_write.txt';
//$testContent = 'Test write operation at ' . date('Y-m-d H:i:s');
//$writeResult = file_put_contents($testFile, $testContent);
$parsedown = new Parsedown();
$parsedown->setSafeMode(true);