MIF_E31230887/check_link.php

9 lines
265 B
PHP

<?php
$target = __DIR__ . '/public/storage';
echo "Path: $target\n";
echo "Is Link: " . (is_link($target) ? 'YES' : 'NO') . "\n";
echo "Is Dir: " . (is_dir($target) ? 'YES' : 'NO') . "\n";
if (is_link($target)) {
echo "Readlink: " . readlink($target) . "\n";
}