Results 1 to 2 of 2

Thread: Funny mistake deleting a file with PHP

  1. #1
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,266
    Thanks
    173
    Thanked 305 Times in 232 Posts

    Funny mistake deleting a file with PHP

    I used the non-existent PHP delete function to try to delete a file, causing my script to hang with a white screen of death.

    Of course, you should use the unlink function. The funny part is that there is a page in the PHP online manual for delete put there for people looking to find the unlink function. But if you skim read the page like I did, you may miss the fact that the function is void.

  2. #2
    iowadawg's Avatar
    iowadawg is offline Free Cell Champion
    Join Date
    May 2010
    Location
    Not in Texas
    Posts
    2,111
    Blog Entries
    4
    Thanks
    170
    Thanked 361 Times in 310 Posts

Tags for this Thread

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
  •