SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: advanced php?

  1. #1
    Bah, I'll just hack it DoobyWho's Avatar
    Join Date
    Jul 2002
    Posts
    476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    advanced php?

    What I am trying to do - not sure if it's possible - is be able to go to a page, type in a # and it will find the file and delete it off a server.

    For instance, if I type in 45 it will go find the file
    d:\mcs\dev\TT45.DDF

    and delete it.

    D is a mapped network drive on the webserver that maps to the file server.

  2. #2
    SitePoint Wizard Mincer's Avatar
    Join Date
    Mar 2001
    Location
    London | UK
    Posts
    1,140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://uk.php.net/manual/en/function.unlink.php

    As long as the user that the web server runs as has permissions to delete files it's easy.

  3. #3
    SitePoint Enthusiast andysmith's Avatar
    Join Date
    Jul 2003
    Location
    Wolverhampton, UK
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you're going to write this yourself, make sure it has WATERTIGHT security, you don't want people being able to mess with uplink().


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
  •