SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    US
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    i'm trying to delete file in folder

    i'm trying to delete file in the upload folder.

  2. #2
    SitePoint Guru silver trophy Luke Redpath's Avatar
    Join Date
    Mar 2003
    Location
    London
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Um, good for you?

    What exactly is the problem?

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    US
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i duno how can i do it.
    - newbie

  4. #4
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    UK
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    unlink();

    Check it out in the manual

  5. #5
    SitePoint Evangelist djdykes's Avatar
    Join Date
    Feb 2005
    Location
    Chester, Cheshire
    Posts
    566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    unlink("filename.php");

    careful tho, there's no undo method or confirmation...
    some code i wrote recently looks like this...

    <a href=". $_SERVER['PHP_SELF']. "?action=del&filename=". $file . " onClick=\"return confirm('Are you SURE you want to delete this record?')\">Delete</a>

    that is more HTML/Javascript but outputs a message box when you click the delete link.


Bookmarks

Posting Permissions

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