gawo2025-ws-json-html
This commit is contained in:
@@ -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;
|
||||
?>
|
||||
Reference in New Issue
Block a user