Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Delete A File?

  1. #1
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    846
    Thanks
    15
    Thanked 10 Times in 10 Posts

    Delete A File?

    Okay, I know you can upload a file using PHP but how about deleting a file and are there any restrictions on this.

    Users that may upload something with my script may wish to delete it as well (without using a FTP Client or accessing the server except via the script). Just curious if this is actually possible.
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #2
    Senior Coder
    Join Date
    Apr 2005
    Location
    Colorado, United States
    Posts
    1,208
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It is possible to delete a file with the unlink() function.
    "$question = ( to() ) ? be() : ~be();"

  • #3
    New Coder
    Join Date
    Apr 2005
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by dniwebdesign
    Okay, I know you can upload a file using PHP but how about deleting a file and are there any restrictions on this.

    Users that may upload something with my script may wish to delete it as well (without using a FTP Client or accessing the server except via the script). Just curious if this is actually possible.

    just use unlink function


  •  

    Posting Permissions

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