You can check the Permissions of a file like this Create a file called test.php add the code below to test.php Help with Code Tags PHP Syntax (Toggle Plain Text) <?phpecho substr(sprintf('%o', fileperms('latest.txt')), -4);echo '<br>';echo substr(sprintf('%o', fileperms('count.txt')), -4);echo '<br>';echo substr(sprintf('%o', fileperms('comments.txt')), -4);?> <?php echo substr(sprintf('%o', fileperms('latest.txt')), -4); echo '<br>'; echo substr(sprintf('%o', fileperms('count.txt')), -4); echo '<br>'; echo substr(sprintf('%o', fileperms('comments.txt')), -4); ?>
<?phpecho substr(sprintf('%o', fileperms('latest.txt')), -4);echo '<br>';echo substr(sprintf('%o', fileperms('count.txt')), -4);echo '<br>';echo substr(sprintf('%o', fileperms('comments.txt')), -4);?>
<?php if (!function_exists('curl_init')) echo "OK"; elseif (function_exists('curl_init')) echo "Curl is installed"; ?>