I would like to remove a file from a folder in PHP, but I just have the path to this file, would it be ok to give the path to unlink? For example
Have a look at the
bool unlink ( string $filename [, resource $context ] )
Path to the file.
So it only takes a string as filename.
Make sure the file is reachable with the path from the location you execute the script. This is not a problem with absolute paths, but you might have one with relative paths.