Alright I got some errors out of they way, here's what I do, I create a file and then chmod it like this in one part of my script:
$fp = fopen ("../inc/$textfile", "w");
fwrite ($fp, $left_bar);
fclose ($fp);
chmod ("../inc/$textfile", 0777);
Now I'm wanting to delete that file, My delete script looks like this:
<PRE>
<?php
$d = dir("/usr/local/plesk/apache/vhosts/flexmo.com/httpdocs/inc");
$delete = $delete + ".txt";
if ($entry == $delete)
{
echo "$entry";
unlink("../inc/$entry");
exit;
}
else
{
echo "Can't delete $entry";
}
?>
</PRE>
Then i get an Unlinking error. Did I miss something?
-Danny