Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 9 of 9

Thread: File removal

  1. #1
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default File removal

    I have a file uploader working. I don't know how to ask so I'll say what I won't. I to be able to allow users to delete files from the directory where all the images are, the list would be like the index of the directory where it usualy says:

    Code:
    Index of /forum/images/awards
    
    Parent Directory
    PH.png
    base.png
    ploob.png

  2. #2
    Join Date
    Oct 2007
    Location
    Luton, England
    Posts
    1,548
    Tokens
    388
    Habbo
    DeejayMachoo

    Latest Awards:

    Default

    The code too delete PH.png is

    Code:
    unlink("path/to/PH/png");


  3. #3
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    So I'm new to php, how would i use that?

  4. #4
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    Well, if you use a database to store IPs, usersname, ids ect...

    Im sure if when they upload a file, you could make an entry in the database, specifying the file link, name and who owns that file and they make a list of files that are linked with their accounts and delete the file from there...

  5. #5
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    Yeah I just won't it so they click something and it deletes if it can be that simple

  6. #6
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    Theres only the creator that can make it simple.

  7. #7
    Join Date
    Feb 2009
    Location
    im
    Posts
    838
    Tokens
    1,621
    Habbo
    Teabags

    Latest Awards:

    Default

    Just to jump on the band wagon abit. I coded a keylogger to my computer. Deleted the compiler and now cannot delete the .exe format of the keylogger.

    superhappy.


  8. #8
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Teabags View Post
    Just to jump on the band wagon abit. I coded a keylogger to my computer. Deleted the compiler and now cannot delete the .exe format of the keylogger.
    And that has what to do with this:S

  9. #9
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    Are you trying to say we shouldn't trust you?

Posting Permissions

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