I need help for delete image from server.
i have a path http://example.com/myapp/example/next/image.png

any body help to remove image from server

You can use the unlink function, passing in the local path to the file. Your web server user just needs to have correct permissions to the file directory.

i need to delete total file or path

and please i want permissions , which permission i want to apply

Member Avatar for diafol

Assuming this is your own server, you can do this in a number of ways.

If you have FTP access, then you can do through that.
You can do it from a script, using as Dani says, the unlink() function.

A quick look at unlink in the php manual, should show you how it could be done:

http://php.net/manual/en/function.unlink.php

thanks usefull information

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.