here's my code:
$d = dir("/usr/local/plesk/apache/vhosts/flexmo.com/httpdocs/inc");
$cow = "/usr/local/plesk/apache/vhosts/flexmo.com/httpdocs/inc/";
$delete = $delete + ".txt";
while($entry=$d->read()) {
if ($entry == $delete)
{
unlink("$cow$entry");
}
}
$d->close();
I'm basically trying to match up the user input to the entries in the directory. I get this error:
Warning: Unlink failed (Permission denied) in /usr/local/plesk/apache/vhosts/flexmo.com/httpdocs/test2/delete.php on line 10
Warning: Unlink failed (Is a directory) in /usr/local/plesk/apache/vhosts/flexmo.com/httpdocs/test2/delete.php on line 10
Please help if you can.
-MrDanny