Jump to content

Simple Directory Question


Mateobus

Recommended Posts

Hello, I am trying to write a script to delete a file using unlink, but it is not working at all.

 

here is how the directories are set up, also, i would like to be able to delete the file relatively from the current directory as opposed to starting from the very beginning if that makes any sense.

 

the script is called script.php in:

 

home/admins/script.php

 

the file (delete_me.del) i want to delete is in

 

home/deletables/delete_me.del

 

this is what i have, but it isn't working: unlink("../../deletables/delete_me.del");

 

Thanks for your time and help.

Link to comment
https://forums.phpfreaks.com/topic/41868-simple-directory-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.