search

Home  >  Q&A  >  body text

php - unlink a deleted file problem

Running environment win7, PHP5.5.3
When accessing the website, both the image paths static\20170501\1.jpg and static/20170501/1.jpg can be accessed
But when deleting the file
unlink( 'static/20170501/1.jpg') is OK,
but unlink('static\20170501\1.jpg') will report an error: unlink(static\20170501\1.jpg): Permission denied.
May I ask why?

習慣沉默習慣沉默2761 days ago915

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-06-05 11:09:39

    Windows:

    "/" means parameters, "" means local path.
    Linux:

    "/" represents path, "" represents escaping, "-" and "-" represent parameters.

    reply
    0
  • Cancelreply