16 lines
456 B
PHP
Executable File
16 lines
456 B
PHP
Executable File
<?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;
|
|
?>
|