http server needs write permission to the directory (../../secure/Admin/Orders/). Permission on the file do not matter.

Aaron Wolski wrote:
Hey all,

I have a script that DDI work but for some reason it no longer does.

It attempts to unlink a file before writing a new file.

The code for it is:

unlink("../../secure/Admin/Orders/order.txt");

Error is:

Warning: unlink(../../secure/Admin/Orders/order.txt): Permission denied

If I remove the unlink function, I can write to the file no problem but
there seems to be a hangup with unlink.

Any ideas??

Thanks!

Aaron


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to