CodeIgniter Forums

Full Version: How to Delete a file from a folder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
unlink option cannot work in framework.

El Forum

[eluser]WanWizard[/eluser]
why not?

El Forum

[eluser]Dennis Rasmussen[/eluser]
*sarcasm* because it's native php! *sarcasmoff*

El Forum

[eluser]davidbehler[/eluser]
Not saying he got a point but CI could offer a better way for deleting single files.

Like a new function in the file helper, let's say delete_file that checks if the file exists and all before running the unlink. More a feature request than a bug report though Wink

El Forum

[eluser]selinan[/eluser]
can you tell the detail, so i can see what's the problem.

El Forum

[eluser]Dennis Rasmussen[/eluser]
[quote author="selinan" date="1291906845"]can you tell the detail, so i can see what's the problem.[/quote]

There is no problem.