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?
Windows:
"/" means parameters, "" means local path.
Linux:
"/" represents path, "" represents escaping, "-" and "-" represent parameters.