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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

deleting a file in a directory on server

  • 18-07-2008 1:27pm
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 Posts: 788 ✭✭✭sleepyescapade


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


Advertisement