Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2010
    Posts
    95
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Unlink (delete) a file after it has been saved with "save as-dialog"

    Is it possible to unlink (delete) a file after it has been saved with the "save as"-dialog:
    Perhaps like this:

    header('Location: ' . $fileName);
    unlink($fileName);

    the problem here is that the file is deleted before the header redirects the file.
    Last edited by earni23; 03-10-2010 at 11:04 AM.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    I don't think you can. Not just with php anyways


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •