Mateobus Posted March 8, 2007 Share Posted March 8, 2007 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 More sharing options...
SammyGunnz Posted March 8, 2007 Share Posted March 8, 2007 ../deletables/delete_me.del Would be the correct way to write it. Link to comment https://forums.phpfreaks.com/topic/41868-simple-directory-question/#findComment-203033 Share on other sites More sharing options...
Mateobus Posted March 8, 2007 Author Share Posted March 8, 2007 thanks Link to comment https://forums.phpfreaks.com/topic/41868-simple-directory-question/#findComment-203041 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.