WEB Delete Files Via Php?

Discussion in 'OT Technology' started by SmugZombie, Oct 10, 2008.

  1. SmugZombie

    SmugZombie Active Member

    Joined:
    Aug 2, 2006
    Messages:
    3,783
    Likes Received:
    0
    Location:
    Purgatory
    I was wondering how I would go about deleteing files via a quick php page.

    say someone uploads an image to my site, i see it and see that its a illegal image or something

    Obviously after i save it to my desktop....and possibly host somewhere else and then show offtopic.... i want to be able to enter the file name into a php form and click delete so its no longer on MY server.

    Im sure this is possible...How do i go about doing it.
     
  2. White Stormy

    White Stormy Take that, subspace!

    Joined:
    Sep 17, 2002
    Messages:
    85,594
    Likes Received:
    120
    Location:
    Sparkopolis
  3. biawokauns

    biawokauns Active Member

    Joined:
    Sep 18, 2001
    Messages:
    19,893
    Likes Received:
    0
    Location:
    Republic of Kalifornia
    don't pwn youreslf
     
  4. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    56,169
    Likes Received:
    174
    Location:
    Los Angeles
    :rofl:
     
  5. crazybenf

    crazybenf Well-Known Member

    Joined:
    Nov 14, 2001
    Messages:
    15,620
    Likes Received:
    52
    system()
    exec()


    nice and secure. :coold:
     
  6. biawokauns

    biawokauns Active Member

    Joined:
    Sep 18, 2001
    Messages:
    19,893
    Likes Received:
    0
    Location:
    Republic of Kalifornia
    echo exec('sudo rm -rf');
     
  7. crazybenf

    crazybenf Well-Known Member

    Joined:
    Nov 14, 2001
    Messages:
    15,620
    Likes Received:
    52
    you dont run apache as root? wtf?
     
  8. SLED

    SLED custom title

    Joined:
    Sep 20, 2001
    Messages:
    28,123
    Likes Received:
    12
    srsly
     

Share This Page