I am in need of some help.
This is my code:
I need to delete a file on the server. The file can be any type of file (.doc or .pdf ect.) therefore I need to use a wild card. ($file.*)
I keep getting an error message that the file does not exist. If I add the extention .pdf and it is a pdf file it does delete it, so my dir is correct. The problem seems to be with the wildcard extention.
What am I doing wrong?