Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

deleting a file in a directory on server

Options
  • 18-07-2008 2:27pm
    #1
    Registered Users Posts: 788 ✭✭✭


    I was using the unlink function for this and had the filepaths correct but for some reason it erases another file rather than the file which the filepath points to :confused: The filepath is stored in a database. Just wondering if anyone had an idea why its erasing a different file?


Comments

  • Registered Users Posts: 3,594 ✭✭✭forbairt


    you've tried debugging this ? (to make sure the filename / path its deleting is the correct one)


  • Closed Accounts Posts: 8,866 ✭✭✭Adam


    Either the file doesn't exist or the filepath is wrong I'm guessing...and even at that, the file not existing shouldn't cause a problem.

    Are you sure the correct filepath is stored in the database?


  • Registered Users Posts: 788 ✭✭✭sleepyescapade


    yup, oh well, ill deal with this monday! thanks for all your help


Advertisement