For the following two lines,
chmod($DeleteCommentName,0755);
unlink($DeleteCommentName);
I get the warnings:
Warning: chmod failed: Operation not permitted in [scriptname]on line 191
Warning: Unlink failed (Permission denied) in [scriptname] on line 192
So I did:
print ("MyGuid is ".getmyuid()." fileperms ".fileperms($DeleteCommentName)." fileowner ". fileowner($DeleteCommentName)."<br>\n");
that returned:
MyGuid is 535 fileperms 33188 fileowner 535
So file owner and script guid are the same, but I cant unlink. Anyone, any solutions?
PS: The file was created by another script. If thats the reason, what should that script do so that this script can delete its files?
Thanxç.