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 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2002
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hey y'all, I have a problem that I cannot remove......

    ...I have a form, which contains two fields, a name and a password field.

    When the form is submitted it writes a file called $name $password .txt

    The thing is that the file is created ok, I just cannot delete it via ftp from my host.

    Anyone know how to fix it?

  • #2
    New Coder
    Join Date
    Jan 2003
    Location
    Tulsa, OK
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Permissions. chmod() the file to 666, and then try again. When you create the file with PHP, the file is owned by the PHP process. You could use the unlink() function to delete it via script if you wanted to.

    Woot.


  •  

    Posting Permissions

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