WEB Delete Files Via Php?

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

  1. SmugZombie

    SmugZombie OT Supporter

    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,489
    Likes Received:
    70
    Location:
    Sparkopolis
  3. biawokauns

    biawokauns New 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:
    55,923
    Likes Received:
    11
    Location:
    Los Angeles
    :rofl:
     
  5. crazybenf

    crazybenf Active Member

    Joined:
    Nov 14, 2001
    Messages:
    15,578
    Likes Received:
    3
    system()
    exec()


    nice and secure. :coold:
     
  6. biawokauns

    biawokauns New Member

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

    crazybenf Active Member

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

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    srsly
     

Share This Page