Web Analytics Made Easy -
StatCounter Warning function unlink is a directory - CodingForum

Announcement

Collapse
No announcement yet.

Warning function unlink is a directory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Warning function unlink is a directory

    hi all

    i am using this code line to delete image from folder

    PHP Code:
    unlink("../graphics/".$image); 
    it works fine on my localhost.

    But on my live hosting server i m getting this error

    PHP Code:
    Warningunlink(../graphics/) [function.unlink]: Is a directory in 

  • #2
    $image is empty. What is $image being set from? Is your code validating $image before trying to use it?
    Finding out HOW to do something is called research, i.e. keep searching until you find the answer. After you attempt to do something and cannot solve a problem with it yourself, would be when you ask others for help.

    Comment

    Working...
    X