It looks like you're new here. If you want to get involved, click one of these buttons!
<?php
//Author: Anon2011
//Created: 22/Feb/11
//Purpose: To check whether file or is writeable/readable.
echo '<form action=\"permissions.php\" method=\"POST\"/>
Path and File or Folder to check : <input type=\"text\" name=\"check\" size=\"50\" />
<input type=\"submit\" value=\"Check permissions\" />
</form>';
if(!isset($_POST['check']))
{
echo '<br/> Example: C:\file.txt or C:\folder';
}
if(isset($_POST['check']))
{
if(is_readable($_POST['check']))
{
echo $_POST['check']. \" is readable.<br/>\";
}
else
{
echo $_POST['check']. \" is NOT readable.<br/>\";
}
if(is_writable($_POST['check']))
{
echo $_POST['check']. \" is writable.<br/>\";
}
else
{
echo $_POST['check']. \" is NOT writable.<br/>\";
}
}
?>