gawo2025-ws-json-html

This commit is contained in:
2026-03-05 14:00:26 +01:00
commit 819e8cde08
15 changed files with 710 additions and 0 deletions
Executable
+16
View File
@@ -0,0 +1,16 @@
<?php
$jsonFilePath = "/home/kuehnk01/Schreibtisch/Examplary/Examplary.json" ;
if (file_exists($jsonFilePath)) {
echo "File exist";
} else {
echo "no json";
}
echo realpath("Examplary.json");
echo getcwd();
echo file_exists("Examplary.json") ? "File exists" : "file not found";
echo "current user: " . get_current_user();
if (is_readable($jsonFilePath)) {
echo "File can be accessed" ;
}
echo "Current working dir" . getcwd() . PHP_EOL;
?>