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,314
    Thanks
    178
    Thanked 309 Times in 236 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.
    Otaku CMS - Import a WordPress blog and manage your site using single-page App technology
    Angular Skills - new site about Front-end App. programming

  2. #2
    iowadawg's Avatar
    iowadawg is online now Free Cell Champion
    Join Date
    May 2010
    Location
    Not in Texas
    Posts
    2,148
    Blog Entries
    4
    Thanks
    171
    Thanked 365 Times in 314 Posts
    Learn something every day.

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
  •