Skip to content
Advertisement

Tag: unlink

Unlink file – path issue – Codeigniter

Apparently, I am confused how to use site_url() while deleting a file. My site_url responded with http://localhost/Project/index.php For deleting a file, I use unlink command. However, How to use site_url into the unlink command in codeigniter. I am surprised! Below is the path where the uploaded files get stored! I have used the following: Message: unlink(C:/xampp/htdocs/NetSach/assets/images/sweepers cartoon.jpg): No such file

permission denied – php unlink

I have two files: b.php and test.txt and the error is: Warning: unlink(test.txt) [function.unlink]: Permission denied why? b.php and test.txt is 777 and the same group/login if I set 777 on the parent directory I can execute unlink but i have to set 777 and back to 755? Answer You (as in the process that runs b.php, either you through

Advertisement